aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2013-04-22 12:45:50 +0000
committerOlivier Lamy <olamy@apache.org>2013-04-22 12:45:50 +0000
commitcd7372298d0f6fee64a92c50522bcb0144c0d722 (patch)
treea787e188a7af37ec25a9d1571cd03f79ce4fc88b /archiva-modules
parent91d0c17bfe5756f698927ffee1bcd837a045e2ae (diff)
downloadarchiva-cd7372298d0f6fee64a92c50522bcb0144c0d722.tar.gz
archiva-cd7372298d0f6fee64a92c50522bcb0144c0d722.zip
button must be visible but disabled if nothing to save
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1470480 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/repositories.html10
1 files changed, 4 insertions, 6 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/repositories.html b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/repositories.html
index 013b1c85f..d8e65c49c 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/repositories.html
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/repositories.html
@@ -1412,11 +1412,9 @@
</a>
</td>
<td>
- {{if repositoryGroup.modified()}}
- <a href="#" class="btn btn-warning" data-bind="click: function(){saveRepositoryGroup(repositoryGroup)}">
+ <a href="#" class="btn btn-warning" data-bind="click: function(){saveRepositoryGroup(repositoryGroup)},css: { disabled: repositoryGroup.modified()==false }">
${$.i18n.prop('save')}
</a>
- {{/if}}
</td>
</tr>
{{/each}}
@@ -1455,13 +1453,13 @@
</form>
</div>
- {{if repositoryGroup.modified()}}
+
<div class="span3">
<a href="#" class="btn btn-warning" data-loading-text="${$.i18n.prop('common.loading')}"
- id="repository-group-save" data-bind="click: function(){saveRepositoryGroup(repositoryGroup)}">${$.i18n.prop('save')}</a>
+ id="repository-group-save" data-bind="click: function(){saveRepositoryGroup(repositoryGroup)},css: { disabled: repositoryGroup.modified()==false }">${$.i18n.prop('save')}</a>
</div>
<br/>
- {{/if}}
+
</div>
</script>