diff options
author | Valerio Virgillito | 2012-07-17 23:34:57 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-07-17 23:34:57 -0700 |
commit | 8f78cb1377009dabde95f4a81d5090b79b9de0da (patch) | |
tree | 4b984909acba691eac8376e3b60412f632e3cdc3 /js/ninja.reel/ninja.js | |
parent | 4f737b24c19ddc02d20f9783b8b080fc6ef11142 (diff) | |
download | ninja-8f78cb1377009dabde95f4a81d5090b79b9de0da.tar.gz |
menu design update and bug fixes - Moved Preview to the document bar
- Redesigned the menu and improved DOM structure.
- Removed un-used entires
- Fixed layout and snap entries
- Moved the preview button to the document bar.
- Fixes for bugs: #1750, #1867, #1876, #1895
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/ninja.reel/ninja.js')
-rwxr-xr-x | js/ninja.reel/ninja.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js index 9fd71b1c..42d15d8b 100755 --- a/js/ninja.reel/ninja.js +++ b/js/ninja.reel/ninja.js | |||
@@ -351,6 +351,7 @@ exports.Ninja = Montage.create(Component, { | |||
351 | this.ninjaVersion = window.ninjaVersion.ninja.version; | 351 | this.ninjaVersion = window.ninjaVersion.ninja.version; |
352 | this.undoManager = document.application.undoManager = UndoManager.create(); | 352 | this.undoManager = document.application.undoManager = UndoManager.create(); |
353 | document.application.njUtils = NjUtils; | 353 | document.application.njUtils = NjUtils; |
354 | document.application.model = this.appModel; | ||
354 | } | 355 | } |
355 | }, | 356 | }, |
356 | 357 | ||
@@ -376,9 +377,9 @@ exports.Ninja = Montage.create(Component, { | |||
376 | 377 | ||
377 | this.eventManager.addEventListener("selectTool", this, false); | 378 | this.eventManager.addEventListener("selectTool", this, false); |
378 | this.eventManager.addEventListener("selectSubTool", this, false); | 379 | this.eventManager.addEventListener("selectSubTool", this, false); |
380 | this.eventManager.addEventListener("executePreview", this, false); | ||
379 | 381 | ||
380 | this.addPropertyChangeListener("appModel.livePreview", this.executeLivePreview, false); | 382 | this.addPropertyChangeListener("appModel.livePreview", this.executeLivePreview, false); |
381 | this.addPropertyChangeListener("appModel.chromePreview", this.executeChromePreview, false); | ||
382 | this.addPropertyChangeListener("appModel.debug", this.toggleDebug, false); | 383 | this.addPropertyChangeListener("appModel.debug", this.toggleDebug, false); |
383 | } | 384 | } |
384 | }, | 385 | }, |
@@ -387,7 +388,7 @@ exports.Ninja = Montage.create(Component, { | |||
387 | //////////////////////////////////////////////////////////////////// | 388 | //////////////////////////////////////////////////////////////////// |
388 | //////////////////////////////////////////////////////////////////// | 389 | //////////////////////////////////////////////////////////////////// |
389 | //TODO: Expand method to allow other browsers for preview | 390 | //TODO: Expand method to allow other browsers for preview |
390 | executeChromePreview: { | 391 | handleExecutePreview: { |
391 | value: function () { | 392 | value: function () { |
392 | //TODO: Make into proper component | 393 | //TODO: Make into proper component |
393 | this.saveOperationScreen = {}; | 394 | this.saveOperationScreen = {}; |