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:
parent
fd98d6d117
commit
807f914338
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue