aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-10 15:40:52 -0700
committerValerio Virgillito2012-05-10 15:40:52 -0700
commitc23c4bad96ebc4c2f85070e4cc2511030cac05fc (patch)
treec6b05f10925c9612925bc77712e2cd0eda9e179d /js/controllers
parent9ace5e2348ead2cd40542531c54b4a243974d266 (diff)
parentde7a9dd3cfe090362957d4fa7250e290c7aba20c (diff)
downloadninja-c23c4bad96ebc4c2f85070e4cc2511030cac05fc.tar.gz
Merge pull request #214 from joseeight/Document
Adding webRequest API
Diffstat (limited to 'js/controllers')
-rwxr-xr-xjs/controllers/document-controller.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js
index 58fa4de7..84e9f4fc 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -89,8 +89,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
89 89
90 90
91 //TODO: Ensure these APIs are not needed 91 //TODO: Ensure these APIs are not needed
92 /* 92 ////////////////////////////////////////////////////////////////////
93////////////////////////////////////////////////////////////////////
94 // 93 //
95 handleWebRequest: { 94 handleWebRequest: {
96 value: function (request) { 95 value: function (request) {
@@ -100,7 +99,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
100 //console.log(request); 99 //console.log(request);
101 //console.log(this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController.documentHackReference.root.split(this.application.ninja.coreIoApi.cloudData.root)[1], request.url); 100 //console.log(this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController.documentHackReference.root.split(this.application.ninja.coreIoApi.cloudData.root)[1], request.url);
102 //return {redirectUrl: this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController.documentHackReference.root.split(this.application.ninja.coreIoApi.cloudData.root)[1]+request.url.split('/')[request.url.split('/').length-1]}; 101 //return {redirectUrl: this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController.documentHackReference.root.split(this.application.ninja.coreIoApi.cloudData.root)[1]+request.url.split('/')[request.url.split('/').length-1]};
103 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/montage-html/'))[1]}; 102 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/montage-web/'))[1]};
104 } 103 }
105 } 104 }
106 }, 105 },
@@ -120,7 +119,6 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
120 } 119 }
121 }, 120 },
122 //////////////////////////////////////////////////////////////////// 121 ////////////////////////////////////////////////////////////////////
123*/
124 122
125 123
126 124