From e15a991628fecc483b2ccee431917f6f0af261dd Mon Sep 17 00:00:00 2001 From: henri <henri.queneau@maarch.org> Date: Thu, 20 Apr 2017 15:25:32 +0200 Subject: [PATCH] jquery instead of prototype --- apps/maarch_entreprise/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/maarch_entreprise/index.php b/apps/maarch_entreprise/index.php index cd9d3365c87..8c6c0b955f6 100644 --- a/apps/maarch_entreprise/index.php +++ b/apps/maarch_entreprise/index.php @@ -233,7 +233,7 @@ if (isset($_GET['body_loaded'])){ } else{ ?> -<body style="background: url('static.php?filename=loading_big.gif') no-repeat fixed center;" onload="$('maarch_body').style.background='f2f2f2';$('maarch_body').style.backgroundImage='';$('maarch_body').style.backgroundUrl='';$('maarch_content').style.display='block';session_expirate(<?php echo $time;?>, '<?php +<body style="background: url('static.php?filename=loading_big.gif') no-repeat fixed center;" onload="$j('#maarch_body').css('background','f2f2f2');$j('#maarch_body').css('backgroundImage','');$j('#maarch_body').css('backgroundUrl', '');$j('#maarch_content').css('display','block');session_expirate(<?php echo $time;?>, '<?php echo $_SESSION['config']['businessappurl']; ?>index.php?display=true&page=logout&logout=true');" id="maarch_body"> <div id ="maarch_content" style="display:none;"> @@ -334,7 +334,7 @@ if (file_exists($path)) { if(isset($_SESSION['error']) && $_SESSION['error'] <> '') { ?> <script> - var main_error = $('main_error_popup'); + var main_error = $j('#main_error_popup'); if (main_error != null) { main_error.style.display = 'table-cell'; Element.hide.delay(10, 'main_error_popup'); @@ -346,7 +346,7 @@ if (file_exists($path)) { if(isset($_SESSION['info']) && $_SESSION['info'] <> '') { ?> <script> - var main_info = $('main_info'); + var main_info = $j('#main_info'); if (main_info != null) { main_info.style.display = 'table-cell'; Element.hide.delay(10, 'main_info'); -- GitLab