From: Olivier Lamy Date: Mon, 19 Nov 2012 12:50:25 +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~620 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7e5ef1556beae860c03c3fab803876fb7fbf4b28;p=archiva.git [MRM-1711] Add buttons for managing repository group as can be a pain with long list of repositories. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1411157 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 a4117fe29..4330f2886 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 @@ -75,21 +75,31 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,jqueryUi,ko) { $.log("removeRepository:"+id); } - this.renderSortableAvailables=function(){ - $.log("renderSortableAvailables"); - //$("#main-content").find("#repository-groups-edit-available-repositories" ).find(".icon-minus-sign" ).hide(); - - } + this.renderSortableAvailables=function(repositoryGroupsViewModel){ + $("#main-content").find("#repository-groups-edit-available-repositories").find(".icon-plus-sign" ).on("click",function(){ + var idVal = $(this).attr("id"); + idVal=idVal.substringAfterFirst("plus-"); + for (var i=0;i
- +
${$data.id()}