diff options
author | Olivier Lamy <olamy@apache.org> | 2012-03-08 20:30:05 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-03-08 20:30:05 +0000 |
commit | b9a320a2da64b48cc702bcfaf72fc2776b767b2f (patch) | |
tree | d1fe9362ef30d68fc543ca65d9ebf2fce8bc8fe2 /archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/utils.js | |
parent | cef700f000e69c17cdc14d7ff2213238fbcef87e (diff) | |
download | archiva-b9a320a2da64b48cc702bcfaf72fc2776b767b2f.tar.gz archiva-b9a320a2da64b48cc702bcfaf72fc2776b767b2f.zip |
[MRM-1581] rewrite network configuration page.
add validation.
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1298563 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/utils.js')
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/utils.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/utils.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/utils.js index 08ec9fd9b..eee85a132 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/utils.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/utils.js @@ -285,8 +285,8 @@ displayRestError=function(data,idToAppend){ * @param errorList */ customShowError=function(selector, validator, errorMap, errorList) { - $(selector ).find("div.control-group" ).removeClass( "error" ); - $(selector).find("span.help-inline").remove(); + $.isFunction(selector)? selector.find("div.control-group" ).removeClass( "error" ):$(selector).find("div.control-group" ).removeClass( "error" ); + $.isFunction(selector)? selector.find("span.help-inline").remove():$(selector).find("span.help-inline").remove(); for ( var i = 0; errorList[i]; i++ ) { var error = errorList[i]; var field = $("#"+error.element.id); |