From a3024011a91d3941f81481dd4d600e9684eb0fd4 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Thu, 2 Feb 2012 00:11:51 -0800 Subject: upgrading to Montage v0.6 Signed-off-by: Valerio Virgillito --- node_modules/montage/ui/popup/alert.reel/alert.css | 8 +-- .../montage/ui/popup/alert.reel/alert.html | 14 ++--- .../montage/ui/popup/confirm.reel/confirm.css | 2 +- .../montage/ui/popup/confirm.reel/confirm.html | 16 ++--- .../montage/ui/popup/confirm.reel/confirm.js | 12 ++-- node_modules/montage/ui/popup/popup.reel/popup.css | 15 +++-- .../montage/ui/popup/popup.reel/popup.html | 2 +- node_modules/montage/ui/popup/popup.reel/popup.js | 69 +++++++++++++++------- 8 files changed, 83 insertions(+), 55 deletions(-) (limited to 'node_modules/montage/ui/popup') diff --git a/node_modules/montage/ui/popup/alert.reel/alert.css b/node_modules/montage/ui/popup/alert.reel/alert.css index 6dee8b6a..70df5033 100755 --- a/node_modules/montage/ui/popup/alert.reel/alert.css +++ b/node_modules/montage/ui/popup/alert.reel/alert.css @@ -3,21 +3,21 @@ 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. */ - + .montage-alert-dialog { min-width: 300px; -} +} .montage-alert-dialog .montage-alert-content { font-size: 1.3em; padding: 15px; - + } .montage-alert-dialog .montage-alert-actions { float: right; } /* - + .montage-alert-dialog { font-family: "AG Buch BQ Regular", "AG Buch BQ", Helvetica, Arial, sans-serif; background-color: #333; diff --git a/node_modules/montage/ui/popup/alert.reel/alert.html b/node_modules/montage/ui/popup/alert.reel/alert.html index f71da981..cb4ef751 100755 --- a/node_modules/montage/ui/popup/alert.reel/alert.html +++ b/node_modules/montage/ui/popup/alert.reel/alert.html @@ -65,7 +65,7 @@ } }, "button1": { - "module": "montage/ui/button.reel", + "module": "montage/ui/bluemoon/button.reel", "name": "Button", "properties": { "identifier": "Ok", @@ -98,23 +98,23 @@
- +

- +
-
+
- + - +
diff --git a/node_modules/montage/ui/popup/confirm.reel/confirm.css b/node_modules/montage/ui/popup/confirm.reel/confirm.css index 8d326cce..959cf719 100755 --- a/node_modules/montage/ui/popup/confirm.reel/confirm.css +++ b/node_modules/montage/ui/popup/confirm.reel/confirm.css @@ -3,7 +3,7 @@ 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. */ - + .montage-confirm-dialog { min-width: 300px; } diff --git a/node_modules/montage/ui/popup/confirm.reel/confirm.html b/node_modules/montage/ui/popup/confirm.reel/confirm.html index 209fdc86..63b521bd 100755 --- a/node_modules/montage/ui/popup/confirm.reel/confirm.html +++ b/node_modules/montage/ui/popup/confirm.reel/confirm.html @@ -29,7 +29,7 @@ } }, "button1": { - "module": "montage/ui/button.reel", + "module": "montage/ui/bluemoon/button.reel", "name": "Button", "properties": { "identifier": "Ok", @@ -56,7 +56,7 @@ ] }, "button2": { - "module": "montage/ui/button.reel", + "module": "montage/ui/bluemoon/button.reel", "name": "Button", "properties": { "identifier": "Cancel", @@ -98,20 +98,20 @@
- +

Confirmation

- +
-
+
- + diff --git a/node_modules/montage/ui/popup/confirm.reel/confirm.js b/node_modules/montage/ui/popup/confirm.reel/confirm.js index 8e1660c5..7e186e29 100755 --- a/node_modules/montage/ui/popup/confirm.reel/confirm.js +++ b/node_modules/montage/ui/popup/confirm.reel/confirm.js @@ -34,7 +34,7 @@ var Confirm = exports.Confirm = Montage.create(Component, /** @lends module:"mon msg: { value: 'Are you sure?' }, - + /** Text to display on the OK button @type {Property} @@ -43,7 +43,7 @@ var Confirm = exports.Confirm = Montage.create(Component, /** @lends module:"mon okLabel: { value: 'OK' }, - + /** Text to display on the Cancel button @type {Property} @@ -52,7 +52,7 @@ var Confirm = exports.Confirm = Montage.create(Component, /** @lends module:"mon cancelLabel: { value: 'Cancel' }, - + /** Description TODO @private @@ -164,9 +164,9 @@ var Confirm = exports.Confirm = Montage.create(Component, /** @lends module:"mon confirm = Confirm.create(); popup.content = confirm; } - + confirm = popup.content; - + if (typeof(options) === "string") { confirm.msg = options; confirm.okLabel = "OK"; @@ -176,7 +176,7 @@ var Confirm = exports.Confirm = Montage.create(Component, /** @lends module:"mon confirm.okLabel = options.okLabel || "OK"; confirm.cancelLabel = options.cancelLabel || "Cancel"; } - + confirm.okCallback = okCallback || null; confirm.cancelCallback = cancelCallback || null; diff --git a/node_modules/montage/ui/popup/popup.reel/popup.css b/node_modules/montage/ui/popup/popup.reel/popup.css index a0af52ba..4597d8ac 100755 --- a/node_modules/montage/ui/popup/popup.reel/popup.css +++ b/node_modules/montage/ui/popup/popup.reel/popup.css @@ -4,7 +4,7 @@ (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. */ /* these need to be moved to montage.css when that is created */ -.montage-hide { +.montage-invisible { display: none; } .clearfix:after { @@ -15,7 +15,7 @@ clear: both; height: 0; } - + .montage-off-left { position: absolute; @@ -25,20 +25,19 @@ .montage-popup-modal-mask { position: fixed; - background-color: #000; left: 0; top: 0; right: 0; bottom: 0; + background-color: #000; opacity: 0.8; - z-index: 9000; } .montage-popup-container { background-color: #fff; border-radius: 5px; border: 3px solid #000; - + } .montage-popup-noborder { @@ -53,8 +52,8 @@ outline: none; } -.montage-popup-wrapper { - +.montage-popup-wrapper { + } .montage-popup-header { @@ -66,5 +65,5 @@ background-color: whitesmoke; padding: 10px 15px; border-top: 1px solid #ddd; - + } diff --git a/node_modules/montage/ui/popup/popup.reel/popup.html b/node_modules/montage/ui/popup/popup.reel/popup.html index 69bf075c..9948b868 100755 --- a/node_modules/montage/ui/popup/popup.reel/popup.html +++ b/node_modules/montage/ui/popup/popup.reel/popup.html @@ -42,7 +42,7 @@ -