[opencart4.0.0.0] alert is not working
Posted: Thu Jun 30, 2022 3:08 pm
After trying, I found the problem is common.js
Before the var, alert, ok. After that, not ok. How to make normal alert work?
Code: Select all
alert(1);
// Alert Fade
var alert = function () {
window.setTimeout(function() {
$('.alert-dismissible').fadeTo(1000, 0, function() {
$(this).remove();
});
}, 7000);
}
alert(2);
$(document).ready(alert);
$(document).on('click', 'button', alert);