aboutsummaryrefslogtreecommitdiff
path: root/js/panels/PanelContainer/PanelContainer.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/PanelContainer/PanelContainer.reel')
-rwxr-xr-xjs/panels/PanelContainer/PanelContainer.reel/PanelContainer.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/js/panels/PanelContainer/PanelContainer.reel/PanelContainer.js b/js/panels/PanelContainer/PanelContainer.reel/PanelContainer.js
index bdd112c6..3cbd4369 100755
--- a/js/panels/PanelContainer/PanelContainer.reel/PanelContainer.js
+++ b/js/panels/PanelContainer/PanelContainer.reel/PanelContainer.js
@@ -63,16 +63,19 @@ 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
67 /* Old Settings
67 if( this.application.ninja.settings.getSetting(this.element.id, "panelOrder") != null) { 68 if( this.application.ninja.settings.getSetting(this.element.id, "panelOrder") != null) {
68 this.initPanelOrder = this.application.ninja.settings.getSetting(this.element.id, "panelOrder") 69 this.initPanelOrder = this.application.ninja.settings.getSetting(this.element.id, "panelOrder")
69 } 70 }
70 */ 71 */
72
71 // if Panels already loaded no need to load again. 73 // if Panels already loaded no need to load again.
72 for(var i = 0; i < this.initPanelOrder.length; i++) { 74 for(var i = 0; i < this.initPanelOrder.length; i++) {
73 this.addPanel(eval(this.initPanelOrder[i])); 75 this.addPanel(eval(this.initPanelOrder[i]));
74 this.panelOrder.push(this.initPanelOrder[i]); 76 this.panelOrder.push(this.initPanelOrder[i]);
75// this.application.ninja.settings.setSetting(this.element.id, "panelOrder", this.panelOrder); 77
78// this.application.ninja.settings.setSetting(this.element.id, "panelOrder", this.panelOrder);
76 } 79 }
77 80
78 var hideSplitter = true; 81 var hideSplitter = true;
@@ -331,6 +334,7 @@ exports.PanelContainer = Montage.create(Component, {
331 this._panels.splice(overed,0, panelRemoved[0]); 334 this._panels.splice(overed,0, panelRemoved[0]);
332 var panelOrderRemoved = this.panelOrder.splice(selected,1); 335 var panelOrderRemoved = this.panelOrder.splice(selected,1);
333 this.panelOrder.splice(overed,0, panelOrderRemoved[0]); 336 this.panelOrder.splice(overed,0, panelOrderRemoved[0]);
337
334 //this.application.ninja.settings.setSetting(this.element.id, "panelOrder", this.panelOrder); 338 //this.application.ninja.settings.setSetting(this.element.id, "panelOrder", this.panelOrder);
335 } 339 }
336 } 340 }