manual patch js file to cope with trunk

https://svn.apache.org/viewvc?view=revision&sortby=log&revision=1481952 

git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-MRM-1756@1488533 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
skygo 2013-06-01 15:14:50 +00:00
parent dbb520ba6b
commit 93e22f06f6
1 changed files with 6 additions and 2 deletions

View File

@ -20,7 +20,7 @@ define("archiva/admin/repository/maven2/repository-groups",["jquery","i18n","jqu
,"knockout.simpleGrid","knockout.sortable","archiva/admin/repository/maven2/repositories"],
function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,jqueryUi,ko) {
RepositoryGroup=function(id,repositories,mergedIndexPath){
RepositoryGroup=function(id,repositories,mergedIndexPath,mergedIndexTtl){
var self=this;
@ -32,6 +32,10 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,jqueryUi,ko) {
this.mergedIndexPath=ko.observable(mergedIndexPath?mergedIndexPath:".indexer");
this.mergedIndexPath.subscribe(function(newValue){self.modified(true)});
// private int mergedIndexTtl = 30;
this.mergedIndexTtl=ko.observable(mergedIndexTtl?mergedIndexTtl:30);
this.mergedIndexTtl.subscribe(function(newValue){self.modified(true)});
// private List<String> repositories;
this.repositories=ko.observableArray(repositories);
this.repositories.subscribe(function(newValue){self.modified(true)});
@ -414,7 +418,7 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,jqueryUi,ko) {
}
mapRepositoryGroup=function(data){
return new RepositoryGroup(data.id, mapStringArray(data.repositories),data.mergedIndexPath);
return new RepositoryGroup(data.id, mapStringArray(data.repositories),data.mergedIndexPath,data.mergedIndexTtl);
}
});