1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-14 09:36:48 +00:00
This commit is contained in:
Jeremy Ruston 2013-03-08 17:50:28 +00:00
parent a13d30e85a
commit e0f342a62e

View File

@ -297,7 +297,11 @@ $tw.utils.PasswordPrompt.prototype.setWrapperDisplay = function() {
};
/*
Adds a new password prompt
Adds a new password prompt. Options are:
submitText: text to use for submit button (defaults to "Login")
serviceName: text of the human readable service name
noUserName: set true to disable username prompt
callback: function to be called on submission with parameter of object {username:,password:}. Callback must return `true` to remove the password prompt
*/
$tw.utils.PasswordPrompt.prototype.createPrompt = function(options) {
// Create and add the prompt to the DOM