diff options
author | Valerio Virgillito | 2012-02-27 10:51:15 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-27 10:51:15 -0800 |
commit | da60be29baab67440535b6b2b71fe7de989dfed0 (patch) | |
tree | 3cda434387f2aa6744808b2b0b4e7571d6d3a467 /js/panels/presets/content.reel | |
parent | a5d635a29de97a7daa93b9036d7a7dce48f07670 (diff) | |
parent | 72baf1c366829ada6858097dd7553ee9988d6110 (diff) | |
download | ninja-da60be29baab67440535b6b2b71fe7de989dfed0.tar.gz |
Merge branch 'local-storage-version' of https://github.com/mencio/ninja-internal into integration-candidate
Diffstat (limited to 'js/panels/presets/content.reel')
-rw-r--r-- | js/panels/presets/content.reel/content.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/panels/presets/content.reel/content.js b/js/panels/presets/content.reel/content.js index c43c593c..1ede7246 100644 --- a/js/panels/presets/content.reel/content.js +++ b/js/panels/presets/content.reel/content.js | |||
@@ -16,7 +16,7 @@ exports.content = Montage.create(Component, { | |||
16 | }, | 16 | }, |
17 | templateDidLoad : { | 17 | templateDidLoad : { |
18 | value: function() { | 18 | value: function() { |
19 | var storedTabIndex = window.localStorage.presetsTabIndex; | 19 | var storedTabIndex = this.application.localStorage.getItem("presetsTabIndex"); |
20 | if(storedTabIndex) { | 20 | if(storedTabIndex) { |
21 | this.activeTabIndex = storedTabIndex; | 21 | this.activeTabIndex = storedTabIndex; |
22 | } | 22 | } |
@@ -50,7 +50,7 @@ exports.content = Montage.create(Component, { | |||
50 | }, | 50 | }, |
51 | set: function(tabObject) { | 51 | set: function(tabObject) { |
52 | this.contentPanel = tabObject.key; | 52 | this.contentPanel = tabObject.key; |
53 | window.localStorage.presetsTabIndex = this.tabs.indexOf(tabObject); | 53 | this.application.localStorage.setItem("presetsTabIndex", this.tabs.indexOf(tabObject)); |
54 | this._tabToDeactivate = this._activeTab; | 54 | this._tabToDeactivate = this._activeTab; |
55 | this._activeTab = tabObject; | 55 | this._activeTab = tabObject; |
56 | 56 | ||