diff options
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/repositories.html | 10 |
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> |