From db5db0a92c1fb67eac262c33d4fbf776ceabbb3c Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Mon, 27 Feb 2012 21:17:29 -0800 Subject: breadcrumb cleanup and moving the resized on top of the timeline panel Signed-off-by: Valerio Virgillito --- .../bread-crumb-button.reel/bread-crumb-button.js | 26 ++++++++++++++-------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'js/components/layout/bread-crumb-button.reel') 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, { value: null }, + // Bound container for the button + container: { + value: null + }, + prepareForDraw: { value: function() { this.element.addEventListener("mousedown", this, false); @@ -25,27 +30,30 @@ exports.BreadcrumbButton = Montage.create(Component, { draw: { value: function() { + + // Temporary until we have the new template + /* + if(this.container.id === "UserContent") { + this.button.innerHTML = "Body"; + } else { + this.button.innerHTML = this.container.nodeName.toLowerCase(); + } + */ + // + if(this.data.element.id === "UserContent") { this.button.innerHTML = "Body"; } else { this.button.innerHTML = this.data.element.nodeName; } + } }, handleMousedown: { value: function(event) { - - //this.data.selected=true; NJevent('breadCrumbTrail',this.data); - //this.data.selected=false; - } } - - - - - }); \ No newline at end of file -- cgit v1.2.3 From 19e94dc51a279501352a08d511b18144f83500e5 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Tue, 28 Feb 2012 00:47:46 -0800 Subject: cleanup and fixing selecting each bread crumb Signed-off-by: Valerio Virgillito --- .../bread-crumb-button.reel/bread-crumb-button.css | 32 ------------ .../bread-crumb-button.html | 36 ------------- .../bread-crumb-button.reel/bread-crumb-button.js | 59 ---------------------- 3 files changed, 127 deletions(-) delete mode 100755 js/components/layout/bread-crumb-button.reel/bread-crumb-button.css delete mode 100755 js/components/layout/bread-crumb-button.reel/bread-crumb-button.html delete mode 100755 js/components/layout/bread-crumb-button.reel/bread-crumb-button.js (limited to 'js/components/layout/bread-crumb-button.reel') 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 deleted file mode 100755 index 9d0a1eb4..00000000 --- a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.css +++ /dev/null @@ -1,32 +0,0 @@ -/* - This file contains proprietary software owned by Motorola Mobility, Inc.
- No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
- (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. -
*/ - -.breadcrumbbuttonBackground { - height: 20px; - min-width: 50px; - margin: auto; - border:1px solid black; - float:left; - margin-left:10px; - background:#474747; - margin-top:3px; -} - - -.breadcrumbtoolBarButton { - border: 1px; - color: white; - text-align:-webkit-center; - margin-top : 4px; - cursor :default; - font-family: 'Droid Sans'; - font-size: 12px; - text-shadow: 1px 1px 1px black; - -} - - - 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 deleted file mode 100755 index b3fdb0b6..00000000 --- a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - - 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 deleted file mode 100755 index c1ac99bd..00000000 --- a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - This file contains proprietary software owned by Motorola Mobility, Inc.
- No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
- (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. -
*/ - -var Montage = require("montage/core/core").Montage; -var Component = require("montage/ui/component").Component; - -exports.BreadcrumbButton = Montage.create(Component, { - - button: { - value: null - }, - - data: { - value: null - }, - - // Bound container for the button - container: { - value: null - }, - - prepareForDraw: { - value: function() { - this.element.addEventListener("mousedown", this, false); - } - }, - - draw: { - value: function() { - - // Temporary until we have the new template - /* - if(this.container.id === "UserContent") { - this.button.innerHTML = "Body"; - } else { - this.button.innerHTML = this.container.nodeName.toLowerCase(); - } - */ - // - - if(this.data.element.id === "UserContent") { - this.button.innerHTML = "Body"; - } else { - this.button.innerHTML = this.data.element.nodeName; - } - - } - }, - - handleMousedown: { - value: function(event) { - NJevent('breadCrumbTrail',this.data); - } - } - -}); \ No newline at end of file -- cgit v1.2.3