aboutsummaryrefslogtreecommitdiff
path: root/js/models
diff options
context:
space:
mode:
authorValerio Virgillito2012-07-20 15:51:27 -0700
committerValerio Virgillito2012-07-20 15:51:27 -0700
commitb59bb17d10a0f5c9c2e5ce0eb1e0e1c7da6c92f6 (patch)
tree480c8037633a33550b90f7f0f39598c5be3b1424 /js/models
parent9053e2037821a5c8405fabb74db9635deacfe8d5 (diff)
downloadninja-b59bb17d10a0f5c9c2e5ce0eb1e0e1c7da6c92f6.tar.gz
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 <valerio@motorola.com>
Diffstat (limited to 'js/models')
-rwxr-xr-xjs/models/element-model.js8
1 files changed, 4 insertions, 4 deletions
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() {
53 }) 53 })
54 }); 54 });
55 55
56 if(this._model.selection !== "body") { 56 if(this._model.selection !== "body" && this.nodeName.toLowerCase() !== "ninja-content") {
57 this._model.props3D.init(this, false); 57 this._model.props3D.init(this, false);
58 } 58 }
59 59
@@ -75,9 +75,9 @@ var getInfoForElement = function(el) {
75 } 75 }
76 76
77 if(el.nodeName.toLowerCase() === "ninja-content") { 77 if(el.nodeName.toLowerCase() === "ninja-content") {
78 elementName = "body"; 78 elementName = "div";
79 controller = elementNameToController(elementName); 79 controller = elementNameToController("body");
80 pi = elementNameToPi(elementName); 80 pi = elementNameToPi("body");
81 } 81 }
82 82
83 // TODO: Add this in case there is no controller for the component 83 // TODO: Add this in case there is no controller for the component