aboutsummaryrefslogtreecommitdiff
path: root/js/document
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-05-07 10:38:04 -0700
committerJose Antonio Marquez2012-05-07 10:38:04 -0700
commit5293ede5f3493900df93da33197416d853f8d907 (patch)
tree3155deaea5616fa09fc96c84567419fec5f288a2 /js/document
parent9c0bda09a502472768f6dd5090a882d11be58d23 (diff)
parent30e837ade2da7cb20caf7c5a69faf0888736bb9a (diff)
downloadninja-5293ede5f3493900df93da33197416d853f8d907.tar.gz
Merge branch 'refs/heads/Ninja-DOM-Architecture' into Document
Diffstat (limited to 'js/document')
-rwxr-xr-xjs/document/document-html.js10
-rwxr-xr-xjs/document/models/html.js4
-rwxr-xr-xjs/document/templates/montage-web/index.html7
-rwxr-xr-xjs/document/views/design.js2
4 files changed, 19 insertions, 4 deletions
diff --git a/js/document/document-html.js b/js/document/document-html.js
index deca9f83..f3c135ed 100755
--- a/js/document/document-html.js
+++ b/js/document/document-html.js
@@ -41,7 +41,7 @@ exports.HtmlDocument = Montage.create(Component, {
41 //////////////////////////////////////////////////////////////////// 41 ////////////////////////////////////////////////////////////////////
42 // 42 //
43 exclusionList: { 43 exclusionList: {
44 value: [] //TODO: Update to correct list 44 value: ["HTML", "BODY"] //TODO: Update to correct list
45 }, 45 },
46 //////////////////////////////////////////////////////////////////// 46 ////////////////////////////////////////////////////////////////////
47 // 47 //
@@ -73,7 +73,7 @@ exports.HtmlDocument = Montage.create(Component, {
73 views: {value: {'design': DesignDocumentView.create(), 'code': null}} //TODO: Add code view logic 73 views: {value: {'design': DesignDocumentView.create(), 'code': null}} //TODO: Add code view logic
74 }); 74 });
75 //Initiliazing views and hiding 75 //Initiliazing views and hiding
76 if (this.model.views.design.initiliaze(document.getElementById("iframeContainer"))) { 76 if (this.model.views.design.initialize(document.getElementById("iframeContainer"))) {
77 //Hiding iFrame, just initiliazing 77 //Hiding iFrame, just initiliazing
78 this.model.views.design.hide(); 78 this.model.views.design.hide();
79 } else { 79 } else {
@@ -115,6 +115,12 @@ exports.HtmlDocument = Montage.create(Component, {
115 this.loaded.callback.call(this.loaded.context, this); 115 this.loaded.callback.call(this.loaded.context, this);
116 //Setting opacity to be viewable after load 116 //Setting opacity to be viewable after load
117 this.model.views.design.iframe.style.opacity = 1; 117 this.model.views.design.iframe.style.opacity = 1;
118
119
120
121
122
123 this.application.ninja.appModel.show3dGrid = true;
118 } 124 }
119 } 125 }
120 //////////////////////////////////////////////////////////////////// 126 ////////////////////////////////////////////////////////////////////
diff --git a/js/document/models/html.js b/js/document/models/html.js
index f45a0e21..5eedb731 100755
--- a/js/document/models/html.js
+++ b/js/document/models/html.js
@@ -15,6 +15,10 @@ exports.HtmlDocumentModel = Montage.create(BaseDocumentModel, {
15 // 15 //
16 hasTemplate: { 16 hasTemplate: {
17 value: false 17 value: false
18 },
19
20 draw3DGrid: {
21 value: false
18 } 22 }
19 //////////////////////////////////////////////////////////////////// 23 ////////////////////////////////////////////////////////////////////
20 //////////////////////////////////////////////////////////////////// 24 ////////////////////////////////////////////////////////////////////
diff --git a/js/document/templates/montage-web/index.html b/js/document/templates/montage-web/index.html
index 1c6b6287..47964ae4 100755
--- a/js/document/templates/montage-web/index.html
+++ b/js/document/templates/montage-web/index.html
@@ -23,8 +23,13 @@
23 padding: 0; 23 padding: 0;
24 position: absolute; 24 position: absolute;
25 -webkit-transform-style: preserve-3d; 25 -webkit-transform-style: preserve-3d;
26 -webkit-perspective: 1400px; 26 -webkit-transform: perspective(1400) matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
27 } 27 }
28
29 html, body {
30 width: 100%;
31 height: 100%;
32 }
28 33
29 ninjaloadinghack { 34 ninjaloadinghack {
30 display: none; 35 display: none;
diff --git a/js/document/views/design.js b/js/document/views/design.js
index 4f598305..6cce229c 100755
--- a/js/document/views/design.js
+++ b/js/document/views/design.js
@@ -49,7 +49,7 @@ exports.DesignDocumentView = Montage.create(BaseDocumentView, {
49 }, 49 },
50 //////////////////////////////////////////////////////////////////// 50 ////////////////////////////////////////////////////////////////////
51 // 51 //
52 initiliaze: { 52 initialize: {
53 value: function (parent) { 53 value: function (parent) {
54 //Creating iFrame for view 54 //Creating iFrame for view
55 this.iframe = document.createElement("iframe"); 55 this.iframe = document.createElement("iframe");