From: Olivier Lamy Date: Mon, 19 Nov 2012 12:50:54 +0000 (+0000) Subject: [MRM-1711] Add buttons for managing repository group as can be a pain with long list... X-Git-Tag: archiva-1.4-M4~618 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1429763756286c686d0e2bac197beeb7895e50fd;p=archiva.git [MRM-1711] Add buttons for managing repository group as can be a pain with long list of repositories. take care about activate correct handler when a repo has been moved. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1411159 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repository-groups.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repository-groups.js index 0c4e98f43..3a23be42e 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repository-groups.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repository-groups.js @@ -61,6 +61,10 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,jqueryUi,ko) { } self.repositoryGroup.repositories(repositories); self.repositoryGroup.modified(true); + $("#main-content").find("#repository-groups-edit-available-repositories").find(".icon-plus-sign" ).off("click"); + $("#main-content").find("#repository-groups-edit-order-div").find(".icon-minus-sign" ).off("click"); + self.renderSortableAvailables(self.repositoryGroupsViewModel); + self.renderSortableChoosed(self.repositoryGroupsViewModel); } this.saveRepositoryGroup=function(repositoryGroup){ @@ -75,23 +79,52 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,jqueryUi,ko) { $.log("removeRepository:"+id); } + this.removeAvailable=function(idVal){ + for (var i=0;i