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).
This commit is contained in:
wn_ 2023-04-01 14:07:43 +00:00
parent fd98d6d117
commit 807f914338
1 changed files with 1 additions and 1 deletions

View File

@ -599,7 +599,7 @@ const CommonDialogs = {
<input style="display: none" type="file" onchange="App.dialogOf(this).uploadIcon(this)"> <input style="display: none" type="file" onchange="App.dialogOf(this).uploadIcon(this)">
</label> </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>
<div dojoType="dijit.layout.ContentPane" title="${__('Plugins')}"> <div dojoType="dijit.layout.ContentPane" title="${__('Plugins')}">
${reply.plugin_data} ${reply.plugin_data}