change variable for constant

This commit is contained in:
Diego Najar 2019-05-09 17:18:26 +02:00
parent 3066c091d2
commit 7ca3c85645
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
function showAlert(text) { function showAlert(text) {
console.log("[INFO] Function showAlert() called."); console.log("[INFO] Function showAlert() called.");
$("#alert").html(text); $("#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()): ?> <?php if (Alert::defined()): ?>