* @param selectorStr
*/
clearForm=function(selectorStr){
- $(selectorStr+" input[type='text']").each(function(ele){
+ $(selectorStr).find("input[type='text']").each(function(ele){
$(this).val("");
});
- $(selectorStr+" input[type='password']").each(function(ele){
+ $(selectorStr).find("input[type='password']").each(function(ele){
$(this).val("");
});
return null;
}
-// extends jquery tmpl to support var def
-$.extend($.tmpl.tag, {
- "var": {
- open: "var $1;"
- }
-});
-
/**
* display redback error from redback json error response
* {"redbackRestError":{"errorMessages":{"args":1,"errorKey":"user.password.violation.numeric"}}}
* @param errorList
*/
customShowError=function(selector, validator, errorMap, errorList) {
- $( selector+" div.control-group" ).removeClass( "error" );
- $( selector+" span.help-inline" ).remove();
+ $(selector ).find("div.control-group" ).removeClass( "error" );
+ $(selector).find("span.help-inline").remove();
for ( var i = 0; errorList[i]; i++ ) {
var error = errorList[i];
var field = $("#"+error.element.id);
appendTemplateUrl=function(){
return "?"+appendArchivaVersion()+timestampNoCache();
-}
\ No newline at end of file
+}
+
+
+// extends jquery tmpl to support var def
+$.extend($.tmpl.tag, {
+ "var": {
+ open: "var $1;"
+ }
+});
\ No newline at end of file