mirror of https://github.com/apache/archiva.git
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:
parent
c47a151b3a
commit
6949209a44
|
@ -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(){
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue