aboutsummaryrefslogtreecommitdiff
path: root/js/document/document-html.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-18 00:21:56 -0700
committerValerio Virgillito2012-05-18 00:21:56 -0700
commit7a94696e19b14e15261df516e2ba75e693b1313d (patch)
treeccb3cdff79be3ae5221779787bfbdcc5ca3d8e77 /js/document/document-html.js
parentf227015e14b505dbd3fc4b030ca17cb6c50c5d88 (diff)
downloadninja-7a94696e19b14e15261df516e2ba75e693b1313d.tar.gz
enabling basic document switching
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/document/document-html.js')
-rwxr-xr-xjs/document/document-html.js20
1 files changed, 18 insertions, 2 deletions
diff --git a/js/document/document-html.js b/js/document/document-html.js
index c77ed7bc..0037c94d 100755
--- a/js/document/document-html.js
+++ b/js/document/document-html.js
@@ -134,7 +134,7 @@ exports.HtmlDocument = Montage.create(Component, {
134 // 134 //
135 serializeDocument: { 135 serializeDocument: {
136 value: function () { 136 value: function () {
137 // There are not needed for now ssince we cannot change them 137 // There are not needed for now since we cannot change them
138 //this.gridHorizontalSpacing = this.application.ninja.stage.drawUtils.gridHorizontalSpacing; 138 //this.gridHorizontalSpacing = this.application.ninja.stage.drawUtils.gridHorizontalSpacing;
139 //this.gridVerticalSpacing = this.application.ninja.stage.drawUtils.gridVerticalSpacing; 139 //this.gridVerticalSpacing = this.application.ninja.stage.drawUtils.gridVerticalSpacing;
140 140
@@ -150,13 +150,29 @@ exports.HtmlDocument = Montage.create(Component, {
150 150
151 // Pause the videos 151 // Pause the videos
152 this.model.views.design.pauseVideos(); 152 this.model.views.design.pauseVideos();
153
154 this.model.isActive = false;
153 } 155 }
154 }, 156 },
155 //////////////////////////////////////////////////////////////////// 157 ////////////////////////////////////////////////////////////////////
156 // 158 //
157 deserializeDocument: { 159 deserializeDocument: {
158 value: function () { 160 value: function () {
159 //TODO: Import functionality 161 // There are not needed for now since we cannot change them
162 //this.application.ninja.stage.drawUtils.gridHorizontalSpacing = this.gridHorizontalSpacing;
163 //this.application.ninja.stage.drawUtils.gridVerticalSpacing = this.gridVerticalSpacing;
164
165 // Deserialize the current scroll position
166 // TODO: Implement
167
168 this.application.ninja.selectedElements = this.model.selection.slice(0);
169
170 this.application.ninja.appModel.show3dGrid = this.draw3DGrid;
171
172 // Serialize the undo
173 // TODO: Save the montage undo queue
174
175 this.model.isActive = true;
160 } 176 }
161 } 177 }
162 //////////////////////////////////////////////////////////////////// 178 ////////////////////////////////////////////////////////////////////