From b9afa81d391f51ea199fc12278b89bdda883dd97 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Tue, 17 Jul 2012 23:34:57 -0700 Subject: removed left over comments. Signed-off-by: Valerio Virgillito --- .../layout/document-bar.reel/document-bar.css | 13 ++++++++++-- .../layout/document-bar.reel/document-bar.html | 23 ++++++++++++++++++++++ .../layout/document-bar.reel/document-bar.js | 6 ++++++ 3 files changed, 40 insertions(+), 2 deletions(-) (limited to 'js/components/layout/document-bar.reel') diff --git a/js/components/layout/document-bar.reel/document-bar.css b/js/components/layout/document-bar.reel/document-bar.css index b86855b7..5eba72e8 100755 --- a/js/components/layout/document-bar.reel/document-bar.css +++ b/js/components/layout/document-bar.reel/document-bar.css @@ -75,7 +75,7 @@ POSSIBILITY OF SUCH DAMAGE. padding: 0; border: none; color: #FFF; - width: 44px; + width: 46px; text-transform: uppercase; text-align: left; float: left; @@ -83,6 +83,10 @@ POSSIBILITY OF SUCH DAMAGE. font-size: 11px; } +.preview:focus { + -webkit-box-shadow: none; +} + .documentBar .viewicon { background-repeat: no-repeat; background-position: center center; @@ -98,10 +102,15 @@ POSSIBILITY OF SUCH DAMAGE. } .documentBar .viewdesign { - background-image: url('../../../../js/panels/Color/colorpanelpopup.reel/img/icon_bitmap.png'); + background-image: url('../../../../js/panels/color/colorpanelpopup.reel/img/icon_bitmap.png'); background-size: 90%; } +.documentBar .viewPreview { + background-image: url('../../../../images/optionsbar/edit_mode.png'); + background-size: 100%; +} + .documentBar section.inactive .viewicon{ opacity: .5; } diff --git a/js/components/layout/document-bar.reel/document-bar.html b/js/components/layout/document-bar.reel/document-bar.html index 69f8107f..9e5e4eb2 100755 --- a/js/components/layout/document-bar.reel/document-bar.html +++ b/js/components/layout/document-bar.reel/document-bar.html @@ -68,6 +68,21 @@ POSSIBILITY OF SUCH DAMAGE. "condition": {"<-": "@owner.disabled"} } }, + + "menuItemButton": { + "prototype": "montage/ui/native/button.reel", + "properties": { + "element": {"#": "previewButton"}, + "identifier": "preview", + "label": "Preview" + }, + "listeners": [ + { + "type": "action", + "listener": {"@": "owner"} + } + ] + }, "owner": { "prototype": "js/components/layout/document-bar.reel", @@ -108,6 +123,14 @@ POSSIBILITY OF SUCH DAMAGE. + +
+ +
+ + + +
diff --git a/js/components/layout/document-bar.reel/document-bar.js b/js/components/layout/document-bar.reel/document-bar.js index 248bc8c4..fa0c8788 100755 --- a/js/components/layout/document-bar.reel/document-bar.js +++ b/js/components/layout/document-bar.reel/document-bar.js @@ -203,5 +203,11 @@ exports.DocumentBar = Montage.create(Component, { this.currentView = event._event.target.id; this.application.ninja.documentController.stage.stageView.switchDesignDocViews(event._event.target.id);//switch between design view } + }, + + handlePreviewAction: { + value: function(event) { + NJevent("executePreview"); + } } }); -- cgit v1.2.3