mirror of https://github.com/apache/archiva.git
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:
parent
dbb520ba6b
commit
93e22f06f6
|
@ -20,7 +20,7 @@ define("archiva/admin/repository/maven2/repository-groups",["jquery","i18n","jqu
|
||||||
,"knockout.simpleGrid","knockout.sortable","archiva/admin/repository/maven2/repositories"],
|
,"knockout.simpleGrid","knockout.sortable","archiva/admin/repository/maven2/repositories"],
|
||||||
function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,jqueryUi,ko) {
|
function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,jqueryUi,ko) {
|
||||||
|
|
||||||
RepositoryGroup=function(id,repositories,mergedIndexPath){
|
RepositoryGroup=function(id,repositories,mergedIndexPath,mergedIndexTtl){
|
||||||
|
|
||||||
var self=this;
|
var self=this;
|
||||||
|
|
||||||
|
@ -32,6 +32,10 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,jqueryUi,ko) {
|
||||||
this.mergedIndexPath=ko.observable(mergedIndexPath?mergedIndexPath:".indexer");
|
this.mergedIndexPath=ko.observable(mergedIndexPath?mergedIndexPath:".indexer");
|
||||||
this.mergedIndexPath.subscribe(function(newValue){self.modified(true)});
|
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;
|
// private List<String> repositories;
|
||||||
this.repositories=ko.observableArray(repositories);
|
this.repositories=ko.observableArray(repositories);
|
||||||
this.repositories.subscribe(function(newValue){self.modified(true)});
|
this.repositories.subscribe(function(newValue){self.modified(true)});
|
||||||
|
@ -414,7 +418,7 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,jqueryUi,ko) {
|
||||||
}
|
}
|
||||||
|
|
||||||
mapRepositoryGroup=function(data){
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue