]> source.dussan.org Git - archiva.git/commitdiff
fix copy/paste ids
authorOlivier Lamy <olamy@apache.org>
Thu, 24 May 2012 16:22:29 +0000 (16:22 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 24 May 2012 16:22:29 +0000 (16:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1342321 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/general-admin.html

index 1513a7e444e6d1b045a8b3b5f540f047ad535caa..877b447dd93289ee40c2d3fdc4bfa26569821d47 100644 (file)
@@ -521,7 +521,7 @@ define("archiva.general-admin",["jquery","i18n","order!utils","order!jquery.tmpl
     this.networkConfiguration=ko.observable(networkConfiguration);
 
     save=function(){
-      if (!$("#main-content #network-proxy-edit-form").valid()){
+      if (!$("#main-content #network-configuration-edit-form").valid()){
         return;
       }
       clearUserMessages();
@@ -550,9 +550,9 @@ define("archiva.general-admin",["jquery","i18n","order!utils","order!jquery.tmpl
           var networkConfiguration=new NetworkConfiguration(data.maxTotal,data.maxTotalPerHost,data.usePooling);
           var networkConfigurationViewModel=new NetworkConfigurationViewModel(networkConfiguration);
           ko.applyBindings(networkConfigurationViewModel,mainContent.get(0));
-          var validator = $("#main-content #network-proxy-edit-form").validate({
+          var validator = mainContent.find("#network-configuration-edit-form").validate({
             showErrors: function(validator, errorMap, errorList) {
-             customShowError(mainContent.find("#network-proxy-edit-form" ).get(0),validator,errorMap,errorMap);
+             customShowError(mainContent.find("#network-configuration-edit-form" ).get(0),validator,errorMap,errorMap);
             }
           });
         }
index 3232a11761e96f7f29d141f0c59bb03fa6bf28cf..f590ecca45be8233c817fce7d7dfc325c933e696 100644 (file)
 </script>
 
 <script id="network-configuration-form-tmpl" type="text/html">
-    <form id="network-proxy-edit-form" class="well form-horizontal">
-      <fieldset id="network-proxy-edit-fieldset">
+    <form id="network-configuration-edit-form" class="well form-horizontal">
+      <fieldset id="network-configuration-edit-fieldset">
         <div class="control-group">
           <label class="control-label" for="maxTotal">${$.i18n.prop('network-configuration.maxTotal')}</label>
           <div class="controls">