reuse selector

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1410356 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-11-16 14:23:18 +00:00
parent e998d9542b
commit 33b6f95108
1 changed files with 3 additions and 3 deletions

View File

@ -111,7 +111,7 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,jqueryUi,ko) {
this.editRepositoryGroup=function(repositoryGroup){ this.editRepositoryGroup=function(repositoryGroup){
var mainContent=$("#main-content");
$.ajax({ $.ajax({
url: "restServices/archivaServices/archivaAdministrationService/applicationUrl", url: "restServices/archivaServices/archivaAdministrationService/applicationUrl",
type: "GET", type: "GET",
@ -121,8 +121,8 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,jqueryUi,ko) {
var repositoryGroupViewModel=new RepositoryGroupViewModel(repositoryGroup,true,self); var repositoryGroupViewModel=new RepositoryGroupViewModel(repositoryGroup,true,self);
repositoryGroupViewModel.applicationUrl=applicationUrl; repositoryGroupViewModel.applicationUrl=applicationUrl;
activateRepositoryGroupEditTab(); activateRepositoryGroupEditTab();
ko.applyBindings(repositoryGroupViewModel,$("#main-content").find("#repository-groups-edit" ).get(0)); ko.applyBindings(repositoryGroupViewModel,mainContent.find("#repository-groups-edit" ).get(0));
$("#main-content" ).find("#repository-groups-view-tabs-li-edit" ).find("a").html($.i18n.prop("edit")); mainContent.find("#repository-groups-view-tabs-li-edit" ).find("a").html($.i18n.prop("edit"));
} }
}); });
} }