When typing in Japanese, the user must hit the enter key to convert Japanese characters. In the pop-up form, however, this submits the data before the user is finished. So I would like to disable the enter key. I can't seem to do it using jQuery. Is there another way?
Yes, you can change some code in our plugin. In file wp-content/plugins/wpdatatables/assets/js/wpdatatables/wpdatatables.js areound line 918 you will find this
$(document).on('keyup', tableDescription.selector + '_edit_dialog input', function (e) {
if (e.which == 13) {
$(tableDescription.selector + '_ok_edit_dialog').click();
}
});
Please turn off option Use minified wpDataTables Javascript on CUSTOM JS AND CSS tab in settings of plugin and clear browsers cache. If you are using server cache clear it as well.
When typing in Japanese, the user must hit the enter key to convert Japanese characters. In the pop-up form, however, this submits the data before the user is finished.
So I would like to disable the enter key. I can't seem to do it using jQuery. Is there another way?
Hi withlovingarms,
Thank you for your purchase.
Yes, you can change some code in our plugin. In file wp-content/plugins/wpdatatables/assets/js/wpdatatables/wpdatatables.js areound line 918 you will find this
and you have to comment it like this:
Please turn off option Use minified wpDataTables Javascript on CUSTOM JS AND CSS tab in settings of plugin and clear browsers cache. If you are using server cache clear it as well.
Best regards.
Kind Regards,
Isidora Markovic
wpDataTables: FAQ | Facebook | Twitter | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Amelia demo sites | Docs
You can try our wpDataTables add-ons before purchase on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables