diff options
Diffstat (limited to 'js/components/layout/document-bar.reel')
-rwxr-xr-x | js/components/layout/document-bar.reel/document-bar.html | 18 | ||||
-rwxr-xr-x | js/components/layout/document-bar.reel/document-bar.js | 2 |
2 files changed, 9 insertions, 11 deletions
diff --git a/js/components/layout/document-bar.reel/document-bar.html b/js/components/layout/document-bar.reel/document-bar.html index bd13f231..760186ba 100755 --- a/js/components/layout/document-bar.reel/document-bar.html +++ b/js/components/layout/document-bar.reel/document-bar.html | |||
@@ -1,4 +1,4 @@ | |||
1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
2 | <!-- <copyright> | 2 | <!-- <copyright> |
3 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | 3 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> |
4 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | 4 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> |
@@ -13,8 +13,7 @@ | |||
13 | <script type="text/montage-serialization"> | 13 | <script type="text/montage-serialization"> |
14 | { | 14 | { |
15 | "hottext1": { | 15 | "hottext1": { |
16 | "module": "js/components/hottextunit.reel", | 16 | "prototype": "js/components/hottextunit.reel[HotTextUnit]", |
17 | "name": "HotTextUnit", | ||
18 | "properties": { | 17 | "properties": { |
19 | "element": {"#": "zoomControlHT"}, | 18 | "element": {"#": "zoomControlHT"}, |
20 | "minValue":25, | 19 | "minValue":25, |
@@ -47,8 +46,7 @@ | |||
47 | }, | 46 | }, |
48 | 47 | ||
49 | "owner": { | 48 | "owner": { |
50 | "module": "js/components/layout/document-bar.reel", | 49 | "prototype": "js/components/layout/document-bar.reel", |
51 | "name": "DocumentBar", | ||
52 | "properties": { | 50 | "properties": { |
53 | "element": {"#": "documentBar"}, | 51 | "element": {"#": "documentBar"}, |
54 | "designView": {"#": "design"}, | 52 | "designView": {"#": "design"}, |
@@ -63,11 +61,11 @@ | |||
63 | </head> | 61 | </head> |
64 | 62 | ||
65 | <body> | 63 | <body> |
66 | <div id="documentBar"> | 64 | <div data-montage-id="documentBar"> |
67 | <input class="zoomHotText label" id="zoomControlHT"/> | 65 | <input class="zoomHotText label" data-montage-id="zoomControlHT"/> |
68 | <span class="design-view disable" id="design">Design View</span> | 66 | <span class="design-view disable" data-montage-id="design">Design View</span> |
69 | <span class="code-view disable" id="code">Code View</span> | 67 | <span class="code-view disable" data-montage-id="code">Code View</span> |
70 | <div id="disabledCondition" class="panelDisabled"></div> | 68 | <div data-montage-id="disabledCondition" class="panelDisabled"></div> |
71 | </div> | 69 | </div> |
72 | </body> | 70 | </body> |
73 | </html> \ No newline at end of file | 71 | </html> \ No newline at end of file |
diff --git a/js/components/layout/document-bar.reel/document-bar.js b/js/components/layout/document-bar.reel/document-bar.js index 66a02725..56b61f1d 100755 --- a/js/components/layout/document-bar.reel/document-bar.js +++ b/js/components/layout/document-bar.reel/document-bar.js | |||
@@ -99,7 +99,7 @@ exports.DocumentBar = Montage.create(Component, { | |||
99 | if(event._event.target.id === this.currentView) return; | 99 | if(event._event.target.id === this.currentView) return; |
100 | 100 | ||
101 | this.currentView = event._event.target.id; | 101 | this.currentView = event._event.target.id; |
102 | this.application.ninja.documentController.stage.stageView.switchViews(event._event.target.id);//switch between design view | 102 | this.application.ninja.documentController.stage.stageView.switchDesignDocViews(event._event.target.id);//switch between design view |
103 | } | 103 | } |
104 | }, | 104 | }, |
105 | 105 | ||