aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'js/controllers')
-rwxr-xr-xjs/controllers/document-controller.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js
index f84e4da5..c61441b7 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -22,7 +22,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
22 value: [] 22 value: []
23 }, 23 },
24 24
25 _hackRootFlag: { 25 redirectRequests: {
26 value: false 26 value: false
27 }, 27 },
28 28
@@ -74,7 +74,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
74 handleWebRequest: { 74 handleWebRequest: {
75 value: function (request) { 75 value: function (request) {
76 //TODO: Check if frameId is proper 76 //TODO: Check if frameId is proper
77 if (this._hackRootFlag && request.parentFrameId !== -1) { 77 if (this.redirectRequests && request.parentFrameId !== -1) {
78 //Checking for proper URL redirect (from different directories) 78 //Checking for proper URL redirect (from different directories)
79 if (request.url.indexOf('js/document/templates/banner') !== -1) { 79 if (request.url.indexOf('js/document/templates/banner') !== -1) {
80 return {redirectUrl: this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController.documentHackReference.root.split(this.application.ninja.coreIoApi.cloudData.root)[1]+request.url.split(chrome.extension.getURL('js/document/templates/banner/'))[1]}; 80 return {redirectUrl: this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController.documentHackReference.root.split(this.application.ninja.coreIoApi.cloudData.root)[1]+request.url.split(chrome.extension.getURL('js/document/templates/banner/'))[1]};
@@ -330,7 +330,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
330 } 330 }
331 331
332 //Open in designer view 332 //Open in designer view
333 this._hackRootFlag = false; 333 this.redirectRequests = false;
334 Montage.create(HTMLDocument).init(file, this, this._onOpenDocument, 'design', template); 334 Montage.create(HTMLDocument).init(file, this, this._onOpenDocument, 'design', template);
335 break; 335 break;
336 default: 336 default: