aboutsummaryrefslogtreecommitdiff
path: root/js/components/layout/bread-crumb-button.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/components/layout/bread-crumb-button.reel')
-rwxr-xr-xjs/components/layout/bread-crumb-button.reel/bread-crumb-button.js26
1 files changed, 17 insertions, 9 deletions
diff --git a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.js b/js/components/layout/bread-crumb-button.reel/bread-crumb-button.js
index 3f5b87e1..c1ac99bd 100755
--- a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.js
+++ b/js/components/layout/bread-crumb-button.reel/bread-crumb-button.js
@@ -17,6 +17,11 @@ exports.BreadcrumbButton = Montage.create(Component, {
17 value: null 17 value: null
18 }, 18 },
19 19
20 // Bound container for the button
21 container: {
22 value: null
23 },
24
20 prepareForDraw: { 25 prepareForDraw: {
21 value: function() { 26 value: function() {
22 this.element.addEventListener("mousedown", this, false); 27 this.element.addEventListener("mousedown", this, false);
@@ -25,27 +30,30 @@ exports.BreadcrumbButton = Montage.create(Component, {
25 30
26 draw: { 31 draw: {
27 value: function() { 32 value: function() {
33
34 // Temporary until we have the new template
35 /*
36 if(this.container.id === "UserContent") {
37 this.button.innerHTML = "Body";
38 } else {
39 this.button.innerHTML = this.container.nodeName.toLowerCase();
40 }
41 */
42 //
43
28 if(this.data.element.id === "UserContent") { 44 if(this.data.element.id === "UserContent") {
29 this.button.innerHTML = "Body"; 45 this.button.innerHTML = "Body";
30 } else { 46 } else {
31 this.button.innerHTML = this.data.element.nodeName; 47 this.button.innerHTML = this.data.element.nodeName;
32 } 48 }
49
33 } 50 }
34 }, 51 },
35 52
36 handleMousedown: { 53 handleMousedown: {
37 value: function(event) { 54 value: function(event) {
38
39 //this.data.selected=true;
40 NJevent('breadCrumbTrail',this.data); 55 NJevent('breadCrumbTrail',this.data);
41 //this.data.selected=false;
42
43 } 56 }
44 } 57 }
45 58
46
47
48
49
50
51}); \ No newline at end of file 59}); \ No newline at end of file