archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1384139 - in /archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js: archiva/repositories.js templates/archiva/repositories.html
Date Wed, 12 Sep 2012 21:45:52 GMT
Author: olamy
Date: Wed Sep 12 21:45:52 2012
New Revision: 1384139

URL: http://svn.apache.org/viewvc?rev=1384139&view=rev
Log:
[MRM-1263] creating an m2eclipse compatible index should be an optional component.
implement ui part.

Modified:
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/repositories.html

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js?rev=1384139&r1=1384138&r2=1384139&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js
Wed Sep 12 21:45:52 2012
@@ -33,7 +33,8 @@ define("archiva.repositories",["jquery",
             ];
 
   ManagedRepository=function(id,name,layout,indexDirectory,location,snapshots,releases,blockRedeployments,cronExpression,
-                             scanned,daysOlder,retentionCount,deleteReleasedSnapshots,stageRepoNeeded,description){
+                             scanned,daysOlder,retentionCount,deleteReleasedSnapshots,stageRepoNeeded,description,
+                             skipPackedIndexCreation){
 
     var self=this;
 
@@ -99,6 +100,10 @@ define("archiva.repositories",["jquery",
     this.description=ko.observable(description);
     this.description.subscribe(function(newValue){self.modified(true)});
 
+    this.skipPackedIndexCreation=ko.observable(skipPackedIndexCreation?skipPackedIndexCreation:false);
+    this.skipPackedIndexCreation.subscribe(function(newValue){self.modified(true)});
+
+
     this.getTypeLabel=function(){
       for(var i=0;i<window.managedRepositoryTypes.length;i++){
         if (window.managedRepositoryTypes[i].type==self.layout()){
@@ -158,7 +163,7 @@ define("archiva.repositories",["jquery",
                                  ,data.releases,
                                  data.blockRedeployments,data.cronExpression,
                                  data.scanned,data.daysOlder,data.retentionCount,data.deleteReleasedSnapshots,
-                                 data.stageRepoNeeded,data.description);
+                                 data.stageRepoNeeded,data.description,data.skipPackedIndexCreation);
   }
 
   mapArchivaRepositoryStatistics=function(data){

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/repositories.html
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/repositories.html?rev=1384139&r1=1384138&r2=1384139&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/repositories.html
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/repositories.html
Wed Sep 12 21:45:52 2012
@@ -279,6 +279,16 @@
                    data-bind="checked: managedRepository.stageRepoNeeded"/>
           </div>
         </div>
+        <div class="control-group">
+          <label class="control-label" for="skipPackedIndexCreation">${$.i18n.prop('skipPackedIndexCreation')}</label>
+          <div class="controls">
+            <input type="checkbox" id="skipPackedIndexCreation" name="skipPackedIndexCreation"
size="5"
+                   data-bind="checked: managedRepository.skipPackedIndexCreation"/>
+          </div>
+        </div>
+
+
+
       </fieldset>
       <button data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
       <button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>



Mime
View raw message