From 3a754133dbc138390503341fd2e9beba3e43aa4b Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Fri, 27 Jan 2012 12:05:17 -0800 Subject: Merged old FileIO --- .../properties/sections/custom-rows/color-select.reel/color-select.html | 0 .../properties/sections/custom-rows/color-select.reel/color-select.js | 0 js/panels/properties/sections/custom-rows/dual-row.reel/dual-row.html | 0 js/panels/properties/sections/custom-rows/dual-row.reel/dual-row.js | 0 js/panels/properties/sections/custom-rows/single-row.reel/single-row.html | 0 js/panels/properties/sections/custom-rows/single-row.reel/single-row.js | 0 js/panels/properties/sections/custom.reel/custom.html | 0 js/panels/properties/sections/custom.reel/custom.js | 0 .../properties/sections/position-and-size.reel/position-and-size.css | 0 .../properties/sections/position-and-size.reel/position-and-size.html | 0 js/panels/properties/sections/position-and-size.reel/position-and-size.js | 0 js/panels/properties/sections/three-d-view.reel/three-d-view.html | 0 js/panels/properties/sections/three-d-view.reel/three-d-view.js | 0 13 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 js/panels/properties/sections/custom-rows/color-select.reel/color-select.html mode change 100644 => 100755 js/panels/properties/sections/custom-rows/color-select.reel/color-select.js mode change 100644 => 100755 js/panels/properties/sections/custom-rows/dual-row.reel/dual-row.html mode change 100644 => 100755 js/panels/properties/sections/custom-rows/dual-row.reel/dual-row.js mode change 100644 => 100755 js/panels/properties/sections/custom-rows/single-row.reel/single-row.html mode change 100644 => 100755 js/panels/properties/sections/custom-rows/single-row.reel/single-row.js mode change 100644 => 100755 js/panels/properties/sections/custom.reel/custom.html mode change 100644 => 100755 js/panels/properties/sections/custom.reel/custom.js mode change 100644 => 100755 js/panels/properties/sections/position-and-size.reel/position-and-size.css mode change 100644 => 100755 js/panels/properties/sections/position-and-size.reel/position-and-size.html mode change 100644 => 100755 js/panels/properties/sections/position-and-size.reel/position-and-size.js mode change 100644 => 100755 js/panels/properties/sections/three-d-view.reel/three-d-view.html mode change 100644 => 100755 js/panels/properties/sections/three-d-view.reel/three-d-view.js (limited to 'js/panels/properties/sections') diff --git a/js/panels/properties/sections/custom-rows/color-select.reel/color-select.html b/js/panels/properties/sections/custom-rows/color-select.reel/color-select.html old mode 100644 new mode 100755 diff --git a/js/panels/properties/sections/custom-rows/color-select.reel/color-select.js b/js/panels/properties/sections/custom-rows/color-select.reel/color-select.js old mode 100644 new mode 100755 diff --git a/js/panels/properties/sections/custom-rows/dual-row.reel/dual-row.html b/js/panels/properties/sections/custom-rows/dual-row.reel/dual-row.html old mode 100644 new mode 100755 diff --git a/js/panels/properties/sections/custom-rows/dual-row.reel/dual-row.js b/js/panels/properties/sections/custom-rows/dual-row.reel/dual-row.js old mode 100644 new mode 100755 diff --git a/js/panels/properties/sections/custom-rows/single-row.reel/single-row.html b/js/panels/properties/sections/custom-rows/single-row.reel/single-row.html old mode 100644 new mode 100755 diff --git a/js/panels/properties/sections/custom-rows/single-row.reel/single-row.js b/js/panels/properties/sections/custom-rows/single-row.reel/single-row.js old mode 100644 new mode 100755 diff --git a/js/panels/properties/sections/custom.reel/custom.html b/js/panels/properties/sections/custom.reel/custom.html old mode 100644 new mode 100755 diff --git a/js/panels/properties/sections/custom.reel/custom.js b/js/panels/properties/sections/custom.reel/custom.js old mode 100644 new mode 100755 diff --git a/js/panels/properties/sections/position-and-size.reel/position-and-size.css b/js/panels/properties/sections/position-and-size.reel/position-and-size.css old mode 100644 new mode 100755 diff --git a/js/panels/properties/sections/position-and-size.reel/position-and-size.html b/js/panels/properties/sections/position-and-size.reel/position-and-size.html old mode 100644 new mode 100755 diff --git a/js/panels/properties/sections/position-and-size.reel/position-and-size.js b/js/panels/properties/sections/position-and-size.reel/position-and-size.js old mode 100644 new mode 100755 diff --git a/js/panels/properties/sections/three-d-view.reel/three-d-view.html b/js/panels/properties/sections/three-d-view.reel/three-d-view.html old mode 100644 new mode 100755 diff --git a/js/panels/properties/sections/three-d-view.reel/three-d-view.js b/js/panels/properties/sections/three-d-view.reel/three-d-view.js old mode 100644 new mode 100755 -- cgit v1.2.3 From 26bfb7a4cbf66c35e23eec46def045bd295be2e1 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Thu, 9 Feb 2012 21:21:29 -0800 Subject: disabling the auto open of a document on load. Temporary using the new project button to open a document. Signed-off-by: Valerio Virgillito --- .../sections/three-d-view.reel/three-d-view.js | 35 ++++++++++++---------- 1 file changed, 19 insertions(+), 16 deletions(-) (limited to 'js/panels/properties/sections') diff --git a/js/panels/properties/sections/three-d-view.reel/three-d-view.js b/js/panels/properties/sections/three-d-view.reel/three-d-view.js index 0c4a9171..35591afa 100755 --- a/js/panels/properties/sections/three-d-view.reel/three-d-view.js +++ b/js/panels/properties/sections/three-d-view.reel/three-d-view.js @@ -207,29 +207,32 @@ exports.ThreeD = Montage.create(Component, { templateDidLoad : { value: function() { Object.defineBinding(this, "axisMode", { - boundObject: this.axisModeGroupControl, - boundObjectPropertyPath: "selectedIndex", - oneway: false - }); + boundObject: this.axisModeGroupControl, + boundObjectPropertyPath: "selectedIndex", + oneway: false + }); + + this.eventManager.addEventListener("openDocument", this, false); + } + }, + + handleOpenDocument: { + value: function() { Object.defineBinding(this, "item", { - boundObject: this, - boundObjectPropertyPath: "application.ninja.selectedElements", - boundValueMutator: this._getSelectedItem, - oneway: true - }); + boundObject: this, + boundObjectPropertyPath: "application.ninja.selectedElements", + boundValueMutator: this._getSelectedItem, + oneway: true + }); } }, _getSelectedItem: { - value: function(els) - { - if(els.length) - { + value: function(els) { + if(els.length) { return els[0]._element || els[0]; - } - else - { + } else { return this.boundObject.application.ninja.currentDocument.documentRoot; } } -- cgit v1.2.3