This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// AJAX CALL FOR DNI | |
function chequearDNI(dni) | |
{ | |
hideGrowl(); | |
hideDNI(); | |
$.getJSON('/ajax/dni/check/'+escapeHtml(dni)) | |
.done(function(json) | |
{ | |
var code = json.code; | |
if(code==1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#boton_submit_etiquetas').click(function() | |
{ | |
$('#formulario').attr('action', '{{etiquetas_url|e}}'); | |
$('#formulario').attr('method', 'POST'); | |
$('#formulario').submit(); | |
}); | |
$('#boton_submit').click(function() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#boton_eliminar_todas').attr('disabled',false); | |
$("#activity_indicator").hide(); | |
$('#boton_nuevo_ikea_family').show(); | |
//En formularios, mejor poner readonly en lugar de disabled! | |
$('#phone1').attr('readOnly',true); | |
//Comprobar si está chequeado: | |
if($('#misma_direccion_envio').prop('checked')) | |
{ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body, html { | |
height: 100%; | |
} | |
div#layout { /* exploder 5.5+ */ | |
position: absolute; | |
left: 0px; | |
top: 0px; | |
overflow: hidden; | |
text-align: center; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* Javascript string replace | |
* http://www.webtoolkit.info/ | |
* | |
**/ | |
// standart string replace functionality | |
function str_replace(haystack, needle, replacement) { | |
var temp = haystack.split(needle); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* Chainable external javascript file loading | |
* http://www.webtoolkit.info/ | |
* | |
**/ | |
scriptLoader.load([ | |
'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', | |
'http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js' | |
'your-script.js' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.roundedCorners { | |
border: 1px solid #000; | |
-moz-border-radius: 10px; | |
-webkit-border-radius: 10px; | |
} | |
.roundedTopCorners { | |
border: 1px solid #000; | |
-moz-border-radius-topleft: 10px; | |
-webkit-border-top-left-radius: 10px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef NS_ENUM(NSUInteger, MyNewType) { | |
MyNewTypeInstance1, | |
MyNewTypeInstance2, | |
MyNewTypeInstance3 | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SEL inSelector = @selector(something:); | |
NSString *selectorAsString = NSStringFromSelector(inSelector); | |
id dict = [[NSMutableDictionary alloc] initWithObjectsAndKeys:@"some text", @"text", selectorAsString, @"selector", nil]; | |
// Retrieve selector | |
SEL outSelector = NSSelectorFromString([dict objectForKey:@"selector"]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef NSFoundationVersionNumber_iOS_6_1 | |
#define SD_IS_IOS7 (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_6_1) | |
#else | |
#define SD_IS_IOS7 NO | |
#endif |