You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by lo...@apache.org on 2013/05/14 06:15:40 UTC

[33/50] [abbrv] webworks commit: Updated navigator.notification.prompt to return an empty string instead of null when no text is entered

Updated navigator.notification.prompt to return an empty string instead of null when no text is entered

Reviewed by Jeffrey Heifetz <jh...@blackberry.com>
Tested by Tracy Li <tl...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/d753ae36
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/d753ae36
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/d753ae36

Branch: refs/heads/master
Commit: d753ae3634d4134ad6765a270203590e99e75fc8
Parents: 5c848df
Author: jkeshavarzi <jk...@blackberry.com>
Authored: Mon Apr 22 16:07:48 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Fri May 3 10:13:31 2013 -0400

----------------------------------------------------------------------
 .../project/plugins/Notification/index.js          |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/d753ae36/blackberry10/bin/templates/project/plugins/Notification/index.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/plugins/Notification/index.js b/blackberry10/bin/templates/project/plugins/Notification/index.js
index 497170b..fad04f7 100644
--- a/blackberry10/bin/templates/project/plugins/Notification/index.js
+++ b/blackberry10/bin/templates/project/plugins/Notification/index.js
@@ -48,7 +48,7 @@ function showDialog(args, dialogType, result) {
             //Prompt dialog callback expects object
             result.callbackOk({
                 buttonIndex: data.ok ? 1 : 0,
-                input1: (data.oktext) ? decodeURIComponent(data.oktext) : null
+                input1: (data.oktext) ? decodeURIComponent(data.oktext) : ""
             }, false);
         }
     });