From b59bb17d10a0f5c9c2e5ce0eb1e0e1c7da6c92f6 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Fri, 20 Jul 2012 15:51:27 -0700 Subject: Unifying the banner and animation template display of ninja-content In the banner and animation template the stage element now shows div in both the pi and breadcrumb. IKNINJA: 1776 Signed-off-by: Valerio Virgillito --- js/models/element-model.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js/models') diff --git a/js/models/element-model.js b/js/models/element-model.js index 07abbd40..7d8e6ebb 100755 --- a/js/models/element-model.js +++ b/js/models/element-model.js @@ -53,7 +53,7 @@ var modelGenerator = exports.modelGenerator = function() { }) }); - if(this._model.selection !== "body") { + if(this._model.selection !== "body" && this.nodeName.toLowerCase() !== "ninja-content") { this._model.props3D.init(this, false); } @@ -75,9 +75,9 @@ var getInfoForElement = function(el) { } if(el.nodeName.toLowerCase() === "ninja-content") { - elementName = "body"; - controller = elementNameToController(elementName); - pi = elementNameToPi(elementName); + elementName = "div"; + controller = elementNameToController("body"); + pi = elementNameToPi("body"); } // TODO: Add this in case there is no controller for the component -- cgit v1.2.3