diff options
author | skygo <skygo@unknown> | 2013-06-01 15:14:50 +0000 |
---|---|---|
committer | skygo <skygo@unknown> | 2013-06-01 15:14:50 +0000 |
commit | 93e22f06f647ac99b39bb00ca77188be0a265451 (patch) | |
tree | 63781c8f833d4e4e899b4c4a2b7874ef8f66d4a1 /archiva-modules | |
parent | dbb520ba6b403232f4e17622bdb971d73c18f1bd (diff) | |
download | archiva-93e22f06f647ac99b39bb00ca77188be0a265451.tar.gz archiva-93e22f06f647ac99b39bb00ca77188be0a265451.zip |
manual patch js file to cope with trunkarchiva-MRM-1756
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
Diffstat (limited to 'archiva-modules')
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/admin/repository/maven2/repository-groups.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/admin/repository/maven2/repository-groups.js b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/admin/repository/maven2/repository-groups.js index 6af71b002..eef015ed0 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/admin/repository/maven2/repository-groups.js +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/admin/repository/maven2/repository-groups.js @@ -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); } }); |