archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1359767 - /archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js
Date Tue, 10 Jul 2012 16:38:56 GMT
Author: olamy
Date: Tue Jul 10 16:38:56 2012
New Revision: 1359767

URL: http://svn.apache.org/viewvc?rev=1359767&view=rev
Log:
use variable to be reuse it later

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

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js?rev=1359767&r1=1359766&r2=1359767&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js
Tue Jul 10 16:38:56 2012
@@ -321,7 +321,7 @@ function() {
       ]
       this.activeMenuId = ko.observable();
           
-      Sammy(function () {
+      sammyArchivaApplication = Sammy(function () {
                 this.get('#:folder', function () {
                     self.activeMenuId(this.params.folder);
                     ko.utils.arrayFirst(self.artifactMenuItems.concat(self.usersMenuItems,
self.administrationMenuItems), function(p) {
@@ -332,8 +332,8 @@ function() {
                     
                   });
                 this.get('', function () { this.app.runRoute('get', '#Search') });
-          } ).run();
-
+          } );
+      sammyArchivaApplication.run();
   }
 
   startArchivaApplication=function(){



Mime
View raw message