change variable for constant

This commit is contained in:
Diego Najar 2019-05-09 17:18:26 +02:00
parent 3066c091d2
commit 7ca3c85645

View File

@ -2,7 +2,7 @@
function showAlert(text) {
console.log("[INFO] Function showAlert() called.");
$("#alert").html(text);
$("#alert").slideDown().delay(<?php echo $GLOBALS['ALERT_DISSAPEAR_IN']*1000 ?>).slideUp();
$("#alert").slideDown().delay(<?php echo ALERT_DISSAPEAR_IN*1000 ?>).slideUp();
}
<?php if (Alert::defined()): ?>