network proxy edition: activate button only if something has changed

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1242188 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-02-09 00:10:31 +00:00
parent c47a151b3a
commit 6949209a44
2 changed files with 6 additions and 1 deletions

View File

@ -133,6 +133,8 @@ $(function() {
ko.applyBindings(viewModel,mainContent.find("#network-proxies-edit").get(0));
activateNetworkProxyFormValidation();
activateNetworkProxyEditTab();
mainContent.find("#network-proxy-btn-save").attr("disabled","true");
mainContent.find("#network-proxy-btn-save").button('toggle');
}
this.bulkSave=function(){

View File

@ -149,7 +149,10 @@
</div>
</fieldset>
<button data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
<button id="network-proxy-btn-save" data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
{{if networkProxy.modified()}}
${("#network-proxy-btn-save").button('reset')}
{{/if}}
<button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>
</form>
</script>