diff options
author | Olivier Lamy <olamy@apache.org> | 2012-07-10 16:38:56 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-07-10 16:38:56 +0000 |
commit | b305caf7d2af05203f9e787d42472e2fd3da2442 (patch) | |
tree | f1a17bc9da7331c69bf87a28e15ad6e28857dab2 /archiva-modules | |
parent | 37280823e3a519edaaee217a7ae4029bd9a8f352 (diff) | |
download | archiva-b305caf7d2af05203f9e787d42472e2fd3da2442.tar.gz archiva-b305caf7d2af05203f9e787d42472e2fd3da2442.zip |
use variable to be reuse it later
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1359767 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js index b21b1e6b8..c0c36f535 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js @@ -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(){ |