cache: false
} );
- customShowError=function(validator, errorMap, errorList) {
- $( "div.clearfix" ).removeClass( "error" );
- $( "span.help-inline" ).remove();
- for ( var i = 0; errorList[i]; i++ ) {
- var error = errorList[i];
- var field = $("#"+error.element.id);
- field.parents( "div.clearfix" ).addClass( "error" );
- field.parent().append( "<span class=\"help-inline\">" + error.message + "</span>" )
- }
- }
-
/**
* reccord a cookie for session with the logged user
* @param user see user.js
$.log("displayRedbackError no array");
displayErrorMessage($.i18n.prop( obj.redbackRestError.errorMessages.errorKey, obj.redbackRestError.errorMessages.args ),idToAppend);
}
+}
+
+customShowError=function(validator, errorMap, errorList) {
+ $( "div.clearfix" ).removeClass( "error" );
+ $( "span.help-inline" ).remove();
+ for ( var i = 0; errorList[i]; i++ ) {
+ var error = errorList[i];
+ var field = $("#"+error.element.id);
+ field.parents( "div.clearfix" ).addClass( "error" );
+ field.parent().append( "<span class=\"help-inline\">" + error.message + "</span>" )
+ }
}
\ No newline at end of file