aboutsummaryrefslogtreecommitdiff
path: root/js/document
diff options
context:
space:
mode:
Diffstat (limited to 'js/document')
-rwxr-xr-xjs/document/document-html.js24
-rwxr-xr-xjs/document/models/base.js8
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: {