aboutsummaryrefslogtreecommitdiff
path: root/js/io/document/base-document.js
diff options
context:
space:
mode:
authorAnanya Sen2012-02-02 00:52:44 -0800
committerAnanya Sen2012-02-02 00:52:44 -0800
commit8504b61aefb25fdab931f02c4568916d2bf8345c (patch)
treefa6c40e1462aef02fab1580ac01f4ec2bbc960bc /js/io/document/base-document.js
parentfc4d32e0df064ecdbe7ed86aab25eeab58253032 (diff)
downloadninja-8504b61aefb25fdab931f02c4568916d2bf8345c.tar.gz
changes to open multiple code view tabs and switch between the code views, added nj-skinned css class for the buttons in file picker, new file dialog and save as dialog
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io/document/base-document.js')
-rwxr-xr-xjs/io/document/base-document.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/js/io/document/base-document.js b/js/io/document/base-document.js
index 44f54f78..af96c851 100755
--- a/js/io/document/base-document.js
+++ b/js/io/document/base-document.js
@@ -12,6 +12,7 @@ var BaseDocument = exports.BaseDocument = Montage.create(Montage, {
12 /** Private Members **/ 12 /** Private Members **/
13 _name: { value: null, enumerable: false }, 13 _name: { value: null, enumerable: false },
14 _uri: { value: null, enumerable: false }, 14 _uri: { value: null, enumerable: false },
15 _externalUri: {value: null, enumerable:false},
15 _documentType: { value: null, enumerable: false }, 16 _documentType: { value: null, enumerable: false },
16 _container: {value: null, enumerable: false }, 17 _container: {value: null, enumerable: false },
17 _uuid: { value: null, enumerable: false }, 18 _uuid: { value: null, enumerable: false },
@@ -31,6 +32,11 @@ var BaseDocument = exports.BaseDocument = Montage.create(Montage, {
31 set: function(value) { this._uri = value; } 32 set: function(value) { this._uri = value; }
32 }, 33 },
33 34
35 externalUri: {
36 get: function() { return this._externalUri; },
37 set: function(value) { this._externalUri = value; }
38 },
39
34 documentType: { 40 documentType: {
35 get: function() { return this._documentType; }, 41 get: function() { return this._documentType; },
36 set: function(value) { this._documentType = value; } 42 set: function(value) { this._documentType = value; }
@@ -68,13 +74,18 @@ var BaseDocument = exports.BaseDocument = Montage.create(Montage, {
68 74
69 /** Base Methods **/ 75 /** Base Methods **/
70 init: { 76 init: {
71 value: function(name, uri, type, container, uuid, callback) { 77 value: function(name, uri, type, container, uuid, callback, externalUri) {
72 this.name = name; 78 this.name = name;
73 this.uri = uri; 79 this.uri = uri;
74 this.documentType = type; 80 this.documentType = type;
75 this.container = container; 81 this.container = container;
76 this.uuid = uuid; 82 this.uuid = uuid;
77 this.callback = callback; 83 this.callback = callback;
84 if(!!externalUri){
85 this.externalUri = externalUri;
86 this.container.setAttribute("data-uri", externalUri);
87 }
88
78 } 89 }
79 }, 90 },
80 91