fix copy/paste ids

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1342321 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-05-24 16:22:29 +00:00
parent 4a2221fc63
commit db79f00a15
2 changed files with 5 additions and 5 deletions

View File

@ -521,7 +521,7 @@ define("archiva.general-admin",["jquery","i18n","order!utils","order!jquery.tmpl
this.networkConfiguration=ko.observable(networkConfiguration); this.networkConfiguration=ko.observable(networkConfiguration);
save=function(){ save=function(){
if (!$("#main-content #network-proxy-edit-form").valid()){ if (!$("#main-content #network-configuration-edit-form").valid()){
return; return;
} }
clearUserMessages(); 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 networkConfiguration=new NetworkConfiguration(data.maxTotal,data.maxTotalPerHost,data.usePooling);
var networkConfigurationViewModel=new NetworkConfigurationViewModel(networkConfiguration); var networkConfigurationViewModel=new NetworkConfigurationViewModel(networkConfiguration);
ko.applyBindings(networkConfigurationViewModel,mainContent.get(0)); 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) { 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);
} }
}); });
} }

View File

@ -288,8 +288,8 @@
</script> </script>
<script id="network-configuration-form-tmpl" type="text/html"> <script id="network-configuration-form-tmpl" type="text/html">
<form id="network-proxy-edit-form" class="well form-horizontal"> <form id="network-configuration-edit-form" class="well form-horizontal">
<fieldset id="network-proxy-edit-fieldset"> <fieldset id="network-configuration-edit-fieldset">
<div class="control-group"> <div class="control-group">
<label class="control-label" for="maxTotal">${$.i18n.prop('network-configuration.maxTotal')}</label> <label class="control-label" for="maxTotal">${$.i18n.prop('network-configuration.maxTotal')}</label>
<div class="controls"> <div class="controls">