diff options
author | Jose Antonio Marquez | 2012-05-08 10:37:38 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-05-08 10:37:38 -0700 |
commit | 4504972c1f3b9bf1d02a4484a07a8a85cf9ccee2 (patch) | |
tree | e55fbbee42164d4d085d4ce479ce4477c03b79c9 /js/document/models | |
parent | 4d949f141247215b5f2a6ec0cfc7d2d31cf2bb1f (diff) | |
download | ninja-4504972c1f3b9bf1d02a4484a07a8a85cf9ccee2.tar.gz |
Adding Chrome Preview
Diffstat (limited to 'js/document/models')
-rwxr-xr-x | js/document/models/base.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/js/document/models/base.js b/js/document/models/base.js index 746922ad..5667fb24 100755 --- a/js/document/models/base.js +++ b/js/document/models/base.js | |||
@@ -68,19 +68,24 @@ exports.BaseDocumentModel = Montage.create(Component, { | |||
68 | //////////////////////////////////////////////////////////////////// | 68 | //////////////////////////////////////////////////////////////////// |
69 | // | 69 | // |
70 | switchViewTo: { | 70 | switchViewTo: { |
71 | value: function () { | 71 | value: function (view) { |
72 | // | 72 | // |
73 | } | 73 | } |
74 | }, | 74 | }, |
75 | //////////////////////////////////////////////////////////////////// | 75 | //////////////////////////////////////////////////////////////////// |
76 | // | 76 | //TODO: Add API to allow other browser support |
77 | browserPreview: { | 77 | browserPreview: { |
78 | value: function (browser) { | 78 | value: function (browser) { |
79 | // | 79 | |
80 | //TODO: Add file save before previewing | ||
81 | |||
82 | //Currently only supporting current browser (Chrome, obviously) | ||
80 | switch (browser) { | 83 | switch (browser) { |
81 | case 'chrome': | 84 | case 'chrome': |
85 | window.open(this.application.ninja.coreIoApi.rootUrl + this.file.uri.split(this.application.ninja.coreIoApi.cloudData.root)[1]); | ||
82 | break; | 86 | break; |
83 | default: | 87 | default: |
88 | window.open(this.application.ninja.coreIoApi.rootUrl + this.file.uri.split(this.application.ninja.coreIoApi.cloudData.root)[1]); | ||
84 | break; | 89 | break; |
85 | } | 90 | } |
86 | } | 91 | } |