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();
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);
}
});
}
</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">