]> source.dussan.org Git - archiva.git/commitdiff
manual patch js file to cope with trunk archiva-MRM-1756 archiva-MRM-1756
authorskygo <skygo@unknown>
Sat, 1 Jun 2013 15:14:50 +0000 (15:14 +0000)
committerskygo <skygo@unknown>
Sat, 1 Jun 2013 15:14:50 +0000 (15:14 +0000)
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

archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/admin/repository/maven2/repository-groups.js

index 6af71b002959f0fd28a37124a0b6b1229055ebe7..eef015ed03c454b5f04cac7faa7f5d76acae58a3 100644 (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);
   }
 
 });