diff options
Diffstat (limited to 'js/document/views')
-rwxr-xr-x | js/document/views/design.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/document/views/design.js b/js/document/views/design.js index 6da1b2e4..a69b7a81 100755 --- a/js/document/views/design.js +++ b/js/document/views/design.js | |||
@@ -257,6 +257,14 @@ exports.DesignDocumentView = Montage.create(BaseDocumentView, { | |||
257 | } else { | 257 | } else { |
258 | //Else there is not data to parse | 258 | //Else there is not data to parse |
259 | } | 259 | } |
260 | //TODO: Verify appropiate location for this operation | ||
261 | if (this._template && this._template.type === 'banner') { | ||
262 | this.model.documentRoot = this.document.body.getElementsByTagName('ninja-content')[0]; | ||
263 | } else { | ||
264 | this.model.documentRoot = this.document.body; | ||
265 | } | ||
266 | //Initiliazing document model | ||
267 | document.application.njUtils.makeElementModel(this.model.documentRoot, "Body", "body"); | ||
260 | //Makign callback if specified | 268 | //Makign callback if specified |
261 | if (this._callback) this._callback(); | 269 | if (this._callback) this._callback(); |
262 | } | 270 | } |