mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-26 19:47:20 +00:00
PasswordPrompt: Return the object so it can be modified
This commit is contained in:
parent
34a51d2e23
commit
651fb777ab
@ -652,11 +652,13 @@ $tw.utils.PasswordPrompt.prototype.createPrompt = function(options) {
|
|||||||
var promptInfo = {
|
var promptInfo = {
|
||||||
serviceName: options.serviceName,
|
serviceName: options.serviceName,
|
||||||
callback: options.callback,
|
callback: options.callback,
|
||||||
form: form
|
form: form,
|
||||||
|
owner: this
|
||||||
};
|
};
|
||||||
this.passwordPrompts.push(promptInfo);
|
this.passwordPrompts.push(promptInfo);
|
||||||
// Make sure the wrapper is displayed
|
// Make sure the wrapper is displayed
|
||||||
this.setWrapperDisplay();
|
this.setWrapperDisplay();
|
||||||
|
return promptInfo;
|
||||||
};
|
};
|
||||||
|
|
||||||
$tw.utils.PasswordPrompt.prototype.removePrompt = function(promptInfo) {
|
$tw.utils.PasswordPrompt.prototype.removePrompt = function(promptInfo) {
|
||||||
|
Loading…
Reference in New Issue
Block a user