archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1342321 - in /archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js: archiva/general-admin.js templates/archiva/general-admin.html
Date Thu, 24 May 2012 16:22:30 GMT
Author: olamy
Date: Thu May 24 16:22:29 2012
New Revision: 1342321

URL: http://svn.apache.org/viewvc?rev=1342321&view=rev
Log:
fix copy/paste ids

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

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js?rev=1342321&r1=1342320&r2=1342321&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js
Thu May 24 16:22:29 2012
@@ -521,7 +521,7 @@ define("archiva.general-admin",["jquery"
     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"
           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);
             }
           });
         }

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/general-admin.html
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/general-admin.html?rev=1342321&r1=1342320&r2=1342321&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/general-admin.html
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/general-admin.html
Thu May 24 16:22:29 2012
@@ -288,8 +288,8 @@
 </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">



Mime
View raw message