diff options
Diffstat (limited to 'js/components/layout')
31 files changed, 23 insertions, 12 deletions
diff --git a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.css b/js/components/layout/bread-crumb-button.reel/bread-crumb-button.css index 9d0a1eb4..9d0a1eb4 100644..100755 --- a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.css +++ b/js/components/layout/bread-crumb-button.reel/bread-crumb-button.css | |||
diff --git a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.html b/js/components/layout/bread-crumb-button.reel/bread-crumb-button.html index b3fdb0b6..b3fdb0b6 100644..100755 --- a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.html +++ b/js/components/layout/bread-crumb-button.reel/bread-crumb-button.html | |||
diff --git a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.js b/js/components/layout/bread-crumb-button.reel/bread-crumb-button.js index 65e5b7c8..65e5b7c8 100644..100755 --- a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.js +++ b/js/components/layout/bread-crumb-button.reel/bread-crumb-button.js | |||
diff --git a/js/components/layout/bread-crumb.reel/bread-crumb.css b/js/components/layout/bread-crumb.reel/bread-crumb.css index cc984609..cc984609 100644..100755 --- a/js/components/layout/bread-crumb.reel/bread-crumb.css +++ b/js/components/layout/bread-crumb.reel/bread-crumb.css | |||
diff --git a/js/components/layout/bread-crumb.reel/bread-crumb.html b/js/components/layout/bread-crumb.reel/bread-crumb.html index 67328479..67328479 100644..100755 --- a/js/components/layout/bread-crumb.reel/bread-crumb.html +++ b/js/components/layout/bread-crumb.reel/bread-crumb.html | |||
diff --git a/js/components/layout/bread-crumb.reel/bread-crumb.js b/js/components/layout/bread-crumb.reel/bread-crumb.js index 9782d9d1..9782d9d1 100644..100755 --- a/js/components/layout/bread-crumb.reel/bread-crumb.js +++ b/js/components/layout/bread-crumb.reel/bread-crumb.js | |||
diff --git a/js/components/layout/document-bar.reel/document-bar.css b/js/components/layout/document-bar.reel/document-bar.css index 588b8952..2a147964 100644..100755 --- a/js/components/layout/document-bar.reel/document-bar.css +++ b/js/components/layout/document-bar.reel/document-bar.css | |||
@@ -33,7 +33,7 @@ | |||
33 | 33 | ||
34 | .documentBar span{ | 34 | .documentBar span{ |
35 | text-decoration: none; | 35 | text-decoration: none; |
36 | cursor: default; | 36 | cursor: pointer; |
37 | color: #3a3a3a; | 37 | color: #3a3a3a; |
38 | } | 38 | } |
39 | 39 | ||
@@ -41,3 +41,10 @@ | |||
41 | color: white; | 41 | color: white; |
42 | } | 42 | } |
43 | 43 | ||
44 | .documentBar .enable{ | ||
45 | color: #d7d7d7; | ||
46 | } | ||
47 | |||
48 | .documentBar .disable{ | ||
49 | color: #3a3a3a; | ||
50 | } \ No newline at end of file | ||
diff --git a/js/components/layout/document-bar.reel/document-bar.html b/js/components/layout/document-bar.reel/document-bar.html index d58f0d14..48f1423c 100644..100755 --- a/js/components/layout/document-bar.reel/document-bar.html +++ b/js/components/layout/document-bar.reel/document-bar.html | |||
@@ -51,8 +51,8 @@ | |||
51 | <body> | 51 | <body> |
52 | <div id="documentBar"> | 52 | <div id="documentBar"> |
53 | <input class="zoomHotText label" id="zoomControlHT"/> | 53 | <input class="zoomHotText label" id="zoomControlHT"/> |
54 | <span class="design-view" id="design">Design View</span> | 54 | <span class="design-view disable" id="design">Design View</span> |
55 | <span class="code-view" id="code">Code View</span> | 55 | <span class="code-view disable" id="code">Code View</span> |
56 | </div> | 56 | </div> |
57 | </body> | 57 | </body> |
58 | </html> \ No newline at end of file | 58 | </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 3eece273..44f65804 100644..100755 --- a/js/components/layout/document-bar.reel/document-bar.js +++ b/js/components/layout/document-bar.reel/document-bar.js | |||
@@ -86,7 +86,7 @@ exports.DocumentBar = Montage.create(Component, { | |||
86 | value: function() { | 86 | value: function() { |
87 | this.designView.addEventListener("click", this, false); | 87 | this.designView.addEventListener("click", this, false); |
88 | this.codeView.addEventListener("click", this, false); | 88 | this.codeView.addEventListener("click", this, false); |
89 | 89 | ||
90 | } | 90 | } |
91 | }, | 91 | }, |
92 | 92 | ||
@@ -95,7 +95,13 @@ exports.DocumentBar = Montage.create(Component, { | |||
95 | if(event._event.target.id === this.currentView) return; | 95 | if(event._event.target.id === this.currentView) return; |
96 | 96 | ||
97 | this.currentView = event._event.target.id; | 97 | this.currentView = event._event.target.id; |
98 | documentManagerModule.DocumentManager.switchViews(); | 98 | this.application.ninja.documentController.switchViews(event._event.target.id);//switch between design view |
99 | } | ||
100 | }, | ||
101 | |||
102 | handleOnDocumentChanged:{ | ||
103 | value:function(event){ | ||
104 | |||
99 | } | 105 | } |
100 | } | 106 | } |
101 | }); | 107 | }); |
diff --git a/js/components/layout/document-entry.reel/close_button.gif b/js/components/layout/document-entry.reel/close_button.gif index 00b5904b..00b5904b 100644..100755 --- a/js/components/layout/document-entry.reel/close_button.gif +++ b/js/components/layout/document-entry.reel/close_button.gif | |||
Binary files differ | |||
diff --git a/js/components/layout/document-entry.reel/document-entry.css b/js/components/layout/document-entry.reel/document-entry.css index ce173cd6..ce173cd6 100644..100755 --- a/js/components/layout/document-entry.reel/document-entry.css +++ b/js/components/layout/document-entry.reel/document-entry.css | |||
diff --git a/js/components/layout/document-entry.reel/document-entry.html b/js/components/layout/document-entry.reel/document-entry.html index ba17449a..ba17449a 100644..100755 --- a/js/components/layout/document-entry.reel/document-entry.html +++ b/js/components/layout/document-entry.reel/document-entry.html | |||
diff --git a/js/components/layout/document-entry.reel/document-entry.js b/js/components/layout/document-entry.reel/document-entry.js index 6f265c91..1431e76f 100644..100755 --- a/js/components/layout/document-entry.reel/document-entry.js +++ b/js/components/layout/document-entry.reel/document-entry.js | |||
@@ -81,7 +81,7 @@ exports.DocumentEntry = Montage.create(Component, { | |||
81 | prepareForDraw: { | 81 | prepareForDraw: { |
82 | enumerable: false, | 82 | enumerable: false, |
83 | value: function() { | 83 | value: function() { |
84 | //this.element.addEventListener("click", this, false); | 84 | this.element.addEventListener("click", this, false); |
85 | } | 85 | } |
86 | }, | 86 | }, |
87 | 87 | ||
@@ -98,10 +98,10 @@ exports.DocumentEntry = Montage.create(Component, { | |||
98 | handleClick: { | 98 | handleClick: { |
99 | value: function(event) { | 99 | value: function(event) { |
100 | if(event._event.target.nodeName === "IMG") { | 100 | if(event._event.target.nodeName === "IMG") { |
101 | documentManagerModule.DocumentManager.closeDocument(this._uuid); | 101 | this.application.ninja.documentController.closeDocument(this._uuid); |
102 | } else { | 102 | } else { |
103 | if(!this._document.isActive) { | 103 | if(!this._document.isActive) { |
104 | documentManagerModule.DocumentManager.switchDocument(this._uuid); | 104 | this.application.ninja.stage.stageView.switchCodeView(this.application.ninja.documentController._findDocumentByUUID(this._uuid)); |
105 | } | 105 | } |
106 | } | 106 | } |
107 | } | 107 | } |
diff --git a/js/components/layout/documents-tab.reel/documents-tab.css b/js/components/layout/documents-tab.reel/documents-tab.css index 689eb777..689eb777 100644..100755 --- a/js/components/layout/documents-tab.reel/documents-tab.css +++ b/js/components/layout/documents-tab.reel/documents-tab.css | |||
diff --git a/js/components/layout/documents-tab.reel/documents-tab.html b/js/components/layout/documents-tab.reel/documents-tab.html index 94b2e46e..94b2e46e 100644..100755 --- a/js/components/layout/documents-tab.reel/documents-tab.html +++ b/js/components/layout/documents-tab.reel/documents-tab.html | |||
diff --git a/js/components/layout/documents-tab.reel/documents-tab.js b/js/components/layout/documents-tab.reel/documents-tab.js index e874a73c..982f6ecd 100644..100755 --- a/js/components/layout/documents-tab.reel/documents-tab.js +++ b/js/components/layout/documents-tab.reel/documents-tab.js | |||
@@ -7,8 +7,6 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot | |||
7 | var Montage = require("montage/core/core").Montage; | 7 | var Montage = require("montage/core/core").Montage; |
8 | var Component = require("montage/ui/component").Component; | 8 | var Component = require("montage/ui/component").Component; |
9 | 9 | ||
10 | var documentManagerModule = require("js/io/document/document-controller"); | ||
11 | |||
12 | exports.DocumentsTab = Montage.create(Component, { | 10 | exports.DocumentsTab = Montage.create(Component, { |
13 | 11 | ||
14 | openDocuments: { | 12 | openDocuments: { |
@@ -19,7 +17,7 @@ exports.DocumentsTab = Montage.create(Component, { | |||
19 | enumerable: false, | 17 | enumerable: false, |
20 | value: function() { | 18 | value: function() { |
21 | // console.log("Change this to be inside the Ninja Reel"); | 19 | // console.log("Change this to be inside the Ninja Reel"); |