1
0
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:
jeremy@jermolene.com 2020-10-14 12:41:33 +01:00
parent 34a51d2e23
commit 651fb777ab

View File

@ -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) {