From 807f914338e7aad22c306d220c63c76fcbb27c08 Mon Sep 17 00:00:00 2001 From: wn_ Date: Sat, 1 Apr 2023 14:07:43 +0000 Subject: [PATCH] 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). --- js/CommonDialogs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = { - ${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+")"})}
${reply.plugin_data}