cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject [08/34] git commit: CB-3762 Change prompt default to empty string
Date Mon, 28 Apr 2014 21:27:52 GMT
CB-3762 Change prompt default to empty string


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/commit/9dd38ccf
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/tree/9dd38ccf
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/diff/9dd38ccf

Branch: refs/heads/dev
Commit: 9dd38ccf68ba5ae0b7d3328925e75566c903cd9d
Parents: ca02615
Author: mbillau <mike.billau@gmail.com>
Authored: Fri Jul 26 09:59:58 2013 -0400
Committer: Archana Naik <naika@lab126.com>
Committed: Thu Mar 20 16:28:54 2014 -0700

----------------------------------------------------------------------
 www/notification.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/blob/9dd38ccf/www/notification.js
----------------------------------------------------------------------
diff --git a/www/notification.js b/www/notification.js
index 1c2c191..23bcf18 100644
--- a/www/notification.js
+++ b/www/notification.js
@@ -87,13 +87,13 @@ module.exports = {
      * @param {Function} resultCallback     The callback that is called when user clicks
on a button.
      * @param {String} title                Title of the dialog (default: "Prompt")
      * @param {Array} buttonLabels          Array of strings for the button labels (default:
["OK","Cancel"])
-     * @param {String} defaultText          Textbox input value (default: "Default text")
+     * @param {String} defaultText          Textbox input value (default: empty string)
      */
     prompt: function(message, resultCallback, title, buttonLabels, defaultText) {
         var _message = (message || "Prompt message");
         var _title = (title || "Prompt");
         var _buttonLabels = (buttonLabels || ["OK","Cancel"]);
-        var _defaultText = (defaultText || "Default text");
+        var _defaultText = (defaultText || "");
         exec(resultCallback, null, "Notification", "prompt", [_message, _title, _buttonLabels,
_defaultText]);
     },
 


Mime
View raw message