aboutsummaryrefslogtreecommitdiff
path: root/js/panels/PanelContainer/PanelContainer.reel/PanelContainer.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-02-24 13:27:33 -0800
committerValerio Virgillito2012-02-24 13:27:33 -0800
commitf97080989ee988c1e613915c2d246dc17b104b3b (patch)
treee8632f5a4537a93263658341cf5941b1baff5ca1 /js/panels/PanelContainer/PanelContainer.reel/PanelContainer.js
parent2b672f6508a849b8023b0bc114ad15e9ddca5adc (diff)
downloadninja-f97080989ee988c1e613915c2d246dc17b104b3b.tar.gz
clearing the old local setting and using the new version/prefix local settings.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/panels/PanelContainer/PanelContainer.reel/PanelContainer.js')
-rwxr-xr-xjs/panels/PanelContainer/PanelContainer.reel/PanelContainer.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/js/panels/PanelContainer/PanelContainer.reel/PanelContainer.js b/js/panels/PanelContainer/PanelContainer.reel/PanelContainer.js
index b8223471..bdd112c6 100755
--- a/js/panels/PanelContainer/PanelContainer.reel/PanelContainer.js
+++ b/js/panels/PanelContainer/PanelContainer.reel/PanelContainer.js
@@ -63,14 +63,16 @@ exports.PanelContainer = Montage.create(Component, {
63 value: function() { 63 value: function() {
64 //Panels Loading 64 //Panels Loading
65 this.lastOffset = this.element.offsetHeight; 65 this.lastOffset = this.element.offsetHeight;
66 /*
66 if( this.application.ninja.settings.getSetting(this.element.id, "panelOrder") != null) { 67 if( this.application.ninja.settings.getSetting(this.element.id, "panelOrder") != null) {
67 this.initPanelOrder = this.application.ninja.settings.getSetting(this.element.id, "panelOrder") 68 this.initPanelOrder = this.application.ninja.settings.getSetting(this.element.id, "panelOrder")
68 } 69 }
70 */
69 // if Panels already loaded no need to load again. 71 // if Panels already loaded no need to load again.
70 for(var i = 0; i < this.initPanelOrder.length; i++) { 72 for(var i = 0; i < this.initPanelOrder.length; i++) {
71 this.addPanel(eval(this.initPanelOrder[i])); 73 this.addPanel(eval(this.initPanelOrder[i]));
72 this.panelOrder.push(this.initPanelOrder[i]); 74 this.panelOrder.push(this.initPanelOrder[i]);
73 this.application.ninja.settings.setSetting(this.element.id, "panelOrder", this.panelOrder); 75// this.application.ninja.settings.setSetting(this.element.id, "panelOrder", this.panelOrder);
74 } 76 }
75 77
76 var hideSplitter = true; 78 var hideSplitter = true;
@@ -221,7 +223,7 @@ exports.PanelContainer = Montage.create(Component, {
221 } 223 }
222 minHeights -= this._panels[lastPanel].minHeight - this._collapsedHeight; 224 minHeights -= this._panels[lastPanel].minHeight - this._collapsedHeight;
223 this._panels[lastPanel].collapsed = true; 225 this._panels[lastPanel].collapsed = true;
224 this.repeater.childComponents[lastPanel].needsDraw = true; 226 //this.repeater.childComponents[lastPanel].needsDraw = true;
225 227
226 228
227 } 229 }
@@ -329,7 +331,7 @@ exports.PanelContainer = Montage.create(Component, {
329 this._panels.splice(overed,0, panelRemoved[0]); 331 this._panels.splice(overed,0, panelRemoved[0]);
330 var panelOrderRemoved = this.panelOrder.splice(selected,1); 332 var panelOrderRemoved = this.panelOrder.splice(selected,1);
331 this.panelOrder.splice(overed,0, panelOrderRemoved[0]); 333 this.panelOrder.splice(overed,0, panelOrderRemoved[0]);
332 this.application.ninja.settings.setSetting(this.element.id, "panelOrder", this.panelOrder); 334 //this.application.ninja.settings.setSetting(this.element.id, "panelOrder", this.panelOrder);
333 } 335 }
334 } 336 }
335 }, 337 },