We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51789ba commit 050c38cCopy full SHA for 050c38c
web_src/js/features/common-global.js
@@ -345,6 +345,8 @@ export function initGlobalButtons() {
345
if (colorPickers.length > 0) {
346
initCompColorPicker();
347
}
348
+ // all non-"ok" buttons which do not have "type" should not submit the form, should not be triggered by "Enter"
349
+ $($(this).attr('data-modal')).find('form button:not(.ok):not([type])').attr('type', 'button');
350
});
351
352
$('.delete-post.button').on('click', function (e) {
0 commit comments