diff options
author | wn_ <[email protected]> | 2023-04-01 14:07:43 +0000 |
---|---|---|
committer | wn_ <[email protected]> | 2023-04-01 14:22:33 +0000 |
commit | 807f914338e7aad22c306d220c63c76fcbb27c08 (patch) | |
tree | fc0b995980a66215f71c7b4fec2e5a0c03a7ac5d | |
parent | fd98d6d117778404f566372ccf362b0d4708e5db (diff) |
Make edit feed dialog's 'remove icon' button a regular button.
Previously it was of type 'submit', and hitting Enter anywhere in the modal triggered its action (rather than the other submit button for saving).
-rw-r--r-- | js/CommonDialogs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/CommonDialogs.js b/js/CommonDialogs.js index 4cfc6ec70..a141c29be 100644 --- a/js/CommonDialogs.js +++ b/js/CommonDialogs.js @@ -599,7 +599,7 @@ const CommonDialogs = { <input style="display: none" type="file" onchange="App.dialogOf(this).uploadIcon(this)"> </label> - ${App.FormFields.submit_tag(App.FormFields.icon("delete") + " " + __("Remove"), {class: "alt-danger", onclick: "App.dialogOf(this).removeIcon("+feed_id+")"})} + ${App.FormFields.button_tag(App.FormFields.icon("delete") + " " + __("Remove"), "", {class: "alt-danger", onclick: "App.dialogOf(this).removeIcon("+feed_id+")"})} </div> <div dojoType="dijit.layout.ContentPane" title="${__('Plugins')}"> ${reply.plugin_data} |