-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update(plugin): Updated cordova to 2.2.0 & refactored JS interface #b…
…reaking
- Loading branch information
Showing
7 changed files
with
55 additions
and
32 deletions.
There are no files selected for viewing
Submodule cordova-ios
updated
from cbee72 to 54efb8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,39 @@ | ||
|
||
var plugin = { | ||
|
||
alert: function() { | ||
window.plugins.messageBox.alert('Title', 'Message', function(button) { | ||
window.plugins.messageBox.alert({title: 'Title', message: 'Message'}, function(button) { | ||
var args = Array.prototype.slice.call(arguments, 0); | ||
console.log("messageBox.alert:" + JSON.stringify(args)); | ||
}); | ||
}, | ||
|
||
confirm: function() { | ||
window.plugins.messageBox.confirm('Title', 'Message', function(button) { | ||
window.plugins.messageBox.confirm({title: 'Title', message: 'Message'}, function(button) { | ||
var args = Array.prototype.slice.call(arguments, 0); | ||
console.log("messageBox.confirm:" + JSON.stringify(args)); | ||
}); | ||
}, | ||
|
||
prompt : function() { | ||
window.plugins.messageBox.prompt('Title', 'Message', function(button, value) { | ||
window.plugins.messageBox.prompt({title: 'Title', message: 'Message'}, function(button, value) { | ||
var args = Array.prototype.slice.call(arguments, 0); | ||
console.log("messageBox.prompt:" + JSON.stringify(args)); | ||
}); | ||
}, | ||
|
||
promptPassword : function() { | ||
window.plugins.messageBox.prompt('Please enter your password', '', function(button, value) { | ||
|
||
var options = { | ||
title: 'Please enter your password', | ||
placeholder: 'password', | ||
type: 'password' | ||
} | ||
|
||
window.plugins.messageBox.prompt(options, function(button, value) { | ||
var args = Array.prototype.slice.call(arguments, 0); | ||
console.log("messageBox.prompt:" + JSON.stringify(args)); | ||
}, {placeholder: 'password', type: 'password'}); | ||
}); | ||
} | ||
|
||
}; |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters