diff options
author | Valerio Virgillito | 2012-04-26 17:05:45 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-04-26 17:05:45 -0700 |
commit | a0e730636083eff0c757cd9e16698e3b8e0066c1 (patch) | |
tree | 22f1f1ff503f077e9c17b6b6784a0b766bd3596c /js/document | |
parent | 238586be0df568c6804268d97bf9d3ef7cd33fda (diff) | |
download | ninja-a0e730636083eff0c757cd9e16698e3b8e0066c1.tar.gz |
Fixed the stage border and layout in the new template
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/document')
-rwxr-xr-x | js/document/document-html.js | 24 | ||||
-rwxr-xr-x | js/document/models/base.js | 8 |
2 files changed, 31 insertions, 1 deletions
diff --git a/js/document/document-html.js b/js/document/document-html.js index d9789cd2..89717dd6 100755 --- a/js/document/document-html.js +++ b/js/document/document-html.js | |||
@@ -32,7 +32,7 @@ exports.HtmlDocument = Montage.create(Component, { | |||
32 | }, | 32 | }, |
33 | 33 | ||
34 | exclusionList: { | 34 | exclusionList: { |
35 | value: ["HTML"] | 35 | value: ["HTML", "BODY"] |
36 | }, | 36 | }, |
37 | 37 | ||
38 | // Getters for the model. | 38 | // Getters for the model. |
@@ -46,6 +46,24 @@ exports.HtmlDocument = Montage.create(Component, { | |||
46 | } | 46 | } |
47 | }, | 47 | }, |
48 | 48 | ||
49 | isActive: { | ||
50 | get: function() { | ||
51 | return this.model._isActive; | ||
52 | }, | ||
53 | set: function(value) { | ||
54 | this.model._isActive = value; | ||
55 | } | ||
56 | }, | ||
57 | |||
58 | needsSave: { | ||
59 | get: function() { | ||
60 | return this.model._needsSave; | ||
61 | }, | ||
62 | set: function(value) { | ||
63 | this.model._needsSave = value; | ||
64 | } | ||
65 | }, | ||
66 | |||
49 | // View Properties | 67 | // View Properties |
50 | // TODO: Move those into a view object - for now dump it here | 68 | // TODO: Move those into a view object - for now dump it here |
51 | iframe: { | 69 | iframe: { |
@@ -57,6 +75,10 @@ exports.HtmlDocument = Montage.create(Component, { | |||
57 | return this._uuid; | 75 | return this._uuid; |
58 | } | 76 | } |
59 | }, | 77 | }, |
78 | |||
79 | currentView: { | ||
80 | value: "design" | ||
81 | }, | ||
60 | //////////////////////////////////////////////////////////////////// | 82 | //////////////////////////////////////////////////////////////////// |
61 | //////////////////////////////////////////////////////////////////// | 83 | //////////////////////////////////////////////////////////////////// |
62 | init: { | 84 | init: { |
diff --git a/js/document/models/base.js b/js/document/models/base.js index 8925fc40..f237e793 100755 --- a/js/document/models/base.js +++ b/js/document/models/base.js | |||
@@ -25,6 +25,14 @@ exports.BaseDocumentModel = Montage.create(Montage, { | |||
25 | _name: { | 25 | _name: { |
26 | value: null | 26 | value: null |
27 | }, | 27 | }, |
28 | |||
29 | _isActive: { | ||
30 | value: null | ||
31 | }, | ||
32 | |||
33 | _needsSave: { | ||
34 | value: null | ||
35 | }, | ||
28 | //////////////////////////////////////////////////////////////////// | 36 | //////////////////////////////////////////////////////////////////// |
29 | // | 37 | // |
30 | njdata: { | 38 | njdata: { |