Skip to content

Commit

Permalink
jquery migration related
Browse files Browse the repository at this point in the history
  • Loading branch information
jzabate committed Aug 22, 2024
1 parent d950c2d commit e4e33fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions view/layout/layoutMelis.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ foreach ($this->assets['css']as $css)
// jQuery checker if properly loaded
var checkjQueryExists = setInterval(function() {
if(window.jQuery !== undefined) {
$( document ).ready(function() {
$('form').submit(false);
$(function() {
$('form').on("submit", function(e) {
e.preventDefault();
});
loadScriptInOrder();
});
clearInterval(checkjQueryExists);
Expand Down

0 comments on commit e4e33fc

Please sign in to comment.