From 33b6f95108ab4b4724056a44bd59c3f7adaece63 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 16 Nov 2012 14:23:18 +0000 Subject: [PATCH] reuse selector git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1410356 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/archiva/repository-groups.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 f52236f4e..0bcd2b4d2 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 @@ -111,7 +111,7 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,jqueryUi,ko) { this.editRepositoryGroup=function(repositoryGroup){ - + var mainContent=$("#main-content"); $.ajax({ url: "restServices/archivaServices/archivaAdministrationService/applicationUrl", type: "GET", @@ -121,8 +121,8 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,jqueryUi,ko) { var repositoryGroupViewModel=new RepositoryGroupViewModel(repositoryGroup,true,self); repositoryGroupViewModel.applicationUrl=applicationUrl; activateRepositoryGroupEditTab(); - ko.applyBindings(repositoryGroupViewModel,$("#main-content").find("#repository-groups-edit" ).get(0)); - $("#main-content" ).find("#repository-groups-view-tabs-li-edit" ).find("a").html($.i18n.prop("edit")); + ko.applyBindings(repositoryGroupViewModel,mainContent.find("#repository-groups-edit" ).get(0)); + mainContent.find("#repository-groups-view-tabs-li-edit" ).find("a").html($.i18n.prop("edit")); } }); } -- 2.39.5