mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-04-18 03:21:21 -07:00
Ensure cancel button in login prompt doesn't also submit form
Fixes #2561
This commit is contained in:
parent
3ad8cf59bd
commit
06b7de415c
1 changed files with 3 additions and 0 deletions
|
|
@ -514,6 +514,9 @@ $tw.utils.PasswordPrompt.prototype.createPrompt = function(options) {
|
|||
if(options.canCancel) {
|
||||
children.push(dm("button",{
|
||||
text: $tw.language.getString("Encryption/Cancel"),
|
||||
attributes: {
|
||||
type: "button"
|
||||
},
|
||||
eventListeners: [{
|
||||
name: "click",
|
||||
handlerFunction: function(event) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue