summaryrefslogtreecommitdiffstats
path: root/web_src/js/features/common-global.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/common-global.js')
-rw-r--r--web_src/js/features/common-global.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/web_src/js/features/common-global.js b/web_src/js/features/common-global.js
index e6421b3a2f..46a80beb51 100644
--- a/web_src/js/features/common-global.js
+++ b/web_src/js/features/common-global.js
@@ -345,8 +345,6 @@ export function initGlobalButtons() {
if (colorPickers.length > 0) {
initCompColorPicker();
}
- // all non-"ok" buttons which do not have "type" should not submit the form, should not be triggered by "Enter"
- $($(this).attr('data-modal')).find('form button:not(.ok):not([type])').attr('type', 'button');
});
$('.delete-post.button').on('click', function (e) {