diff options
author | Jose Antonio Marquez | 2012-02-17 13:40:38 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-02-17 13:40:38 -0800 |
commit | a42c536c2b3209afc058eabd31167bd0aa6f71c8 (patch) | |
tree | 04158cd6136807bd77e8748972e165a5c91ce23b /js/document/html-document.js | |
parent | c56673e931e77b0c45b3a1c1112d16be3b599916 (diff) | |
download | ninja-a42c536c2b3209afc058eabd31167bd0aa6f71c8.tar.gz |
Adding webRequest redirects for iFrame templates
Diffstat (limited to 'js/document/html-document.js')
-rwxr-xr-x | js/document/html-document.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/document/html-document.js b/js/document/html-document.js index 16595d14..ae2b4600 100755 --- a/js/document/html-document.js +++ b/js/document/html-document.js | |||
@@ -235,7 +235,7 @@ exports.HTMLDocument = Montage.create(TextDocument, { | |||
235 | // | 235 | // |
236 | initialize: { | 236 | initialize: { |
237 | value: function(file, uuid, iframe, callback) { | 237 | value: function(file, uuid, iframe, callback) { |
238 | //console.log('allow'); | 238 | this.application.ninja.documentController._hackRootFlag = false; |
239 | // | 239 | // |
240 | this._userDocument = file; | 240 | this._userDocument = file; |
241 | // | 241 | // |
@@ -363,7 +363,8 @@ exports.HTMLDocument = Montage.create(TextDocument, { | |||
363 | // | 363 | // |
364 | handleEvent: { | 364 | handleEvent: { |
365 | value: function(event){ | 365 | value: function(event){ |
366 | 366 | this.application.ninja.documentController._hackRootFlag = true; | |
367 | //console.log(this._userDocument.root, this); | ||
367 | //TODO: Clean up, using for prototyping save | 368 | //TODO: Clean up, using for prototyping save |
368 | this._templateDocument = {}; | 369 | this._templateDocument = {}; |
369 | this._templateDocument.head = this.iframe.contentWindow.document.getElementById("userHead");; | 370 | this._templateDocument.head = this.iframe.contentWindow.document.getElementById("userHead");; |