diff options
author | Armen Kesablyan | 2012-02-22 16:26:41 -0800 |
---|---|---|
committer | Armen Kesablyan | 2012-02-22 16:26:41 -0800 |
commit | 0bd1cefea2ab350fad1a891bdc926053b799aafc (patch) | |
tree | 962f559fcc02a3dfeb297d59907e40fa153453f3 /js/components/layout/bread-crumb-button.reel | |
parent | 695bc5082f48dddf66ce31480a4faefc067b38bd (diff) | |
parent | 2d2b1af8b5c0d506fe6a1cf65614101fec145970 (diff) | |
download | ninja-0bd1cefea2ab350fad1a891bdc926053b799aafc.tar.gz |
Merge branch 'refs/heads/master' into new-tool-icons
Diffstat (limited to 'js/components/layout/bread-crumb-button.reel')
-rwxr-xr-x[-rw-r--r--] | js/components/layout/bread-crumb-button.reel/bread-crumb-button.css | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | js/components/layout/bread-crumb-button.reel/bread-crumb-button.html | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | js/components/layout/bread-crumb-button.reel/bread-crumb-button.js | 35 |
3 files changed, 14 insertions, 21 deletions
diff --git a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.css b/js/components/layout/bread-crumb-button.reel/bread-crumb-button.css index 9d0a1eb4..9d0a1eb4 100644..100755 --- a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.css +++ b/js/components/layout/bread-crumb-button.reel/bread-crumb-button.css | |||
diff --git a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.html b/js/components/layout/bread-crumb-button.reel/bread-crumb-button.html index b3fdb0b6..b3fdb0b6 100644..100755 --- a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.html +++ b/js/components/layout/bread-crumb-button.reel/bread-crumb-button.html | |||
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 65e5b7c8..3f5b87e1 100644..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 | |||
@@ -7,45 +7,38 @@ | |||
7 | var Montage = require("montage/core/core").Montage; | 7 | var Montage = require("montage/core/core").Montage; |
8 | var Component = require("montage/ui/component").Component; | 8 | var Component = require("montage/ui/component").Component; |
9 | 9 | ||
10 | |||
11 | exports.BreadcrumbButton = Montage.create(Component, { | 10 | exports.BreadcrumbButton = Montage.create(Component, { |
12 | 11 | ||
13 | button: { value: null }, | 12 | button: { |
13 | value: null | ||
14 | }, | ||
14 | 15 | ||
15 | data: { value: null }, | 16 | data: { |
17 | value: null | ||
18 | }, | ||
16 | 19 | ||
17 | prepareForDraw: { | 20 | prepareForDraw: { |
18 | enumerable: false, | ||
19 | value: function() { | 21 | value: function() { |
20 | this.element.addEventListener("mousedown", this, false); | 22 | this.element.addEventListener("mousedown", this, false); |
21 | } | 23 | } |
22 | }, | 24 | }, |
23 | 25 | ||
24 | draw: { | 26 | draw: { |
25 | enumerable: false, | ||
26 | value: function() { | 27 | value: function() { |
27 | 28 | if(this.data.element.id === "UserContent") { | |
28 | if(this.data.element.id==="UserContent"){ | 29 | this.button.innerHTML = "Body"; |
29 | 30 | } else { | |
30 | this.button.innerHTML = "Body"; | 31 | this.button.innerHTML = this.data.element.nodeName; |
31 | } | 32 | } |
32 | |||
33 | else{ | ||
34 | this.button.innerHTML=this.data.element.nodeName; | ||
35 | } | ||
36 | |||
37 | } | 33 | } |
38 | }, | 34 | }, |
39 | 35 | ||
40 | handleMousedown: { | 36 | handleMousedown: { |
41 | value: function(event) { | 37 | value: function(event) { |
42 | 38 | ||
43 | if(event.which===1){ | 39 | //this.data.selected=true; |
44 | 40 | NJevent('breadCrumbTrail',this.data); | |
45 | this.data.selected=true; | 41 | //this.data.selected=false; |
46 | NJevent('breadCrumbTrail',this.data); | ||
47 | this.data.selected=false; | ||
48 | } | ||
49 | 42 | ||
50 | } | 43 | } |
51 | } | 44 | } |