fix add proxyConnector rule

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

View File

@ -232,6 +232,7 @@ define("archiva.proxy-connectors-rules",["jquery","i18n","jquery.tmpl","bootstra
//private String sourceRepoId;
this.pattern=ko.observable(pattern);
this.pattern.subscribe(function(newValue){
$.log("pattern modified");
self.modified(true);
});

View File

@ -1419,9 +1419,9 @@
</form>
</div>
{{/if}}
{{if proxyConnectorRule.modified()}}
<div class="span3">
{{if update}}
<div class="span3" data-bind="visible: proxyConnectorRule.modified()">
{{if update && proxyConnectorRule.modified()}}
<a href="#" class="btn btn-warning" data-loading-text="${$.i18n.prop('common.loading')}"
id="proxy-connector-rule-update-btn" data-bind="click: function(){updateProxyConnectorRule(proxyConnectorRule)}">${$.i18n.prop('update')}</a>
{{else}}
@ -1431,7 +1431,7 @@
</div>
<br/>
{{/if}}
</div>
</script>