summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorwn_ <[email protected]>2023-04-01 14:07:43 +0000
committerwn_ <[email protected]>2023-04-01 14:22:33 +0000
commit807f914338e7aad22c306d220c63c76fcbb27c08 (patch)
treefc0b995980a66215f71c7b4fec2e5a0c03a7ac5d /js
parentfd98d6d117778404f566372ccf362b0d4708e5db (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).
Diffstat (limited to 'js')
-rw-r--r--js/CommonDialogs.js2
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}