Cosmetic : highlight message after upgrade
This commit is contained in:
parent
5be894f963
commit
fcb62c09de
3 changed files with 28 additions and 5 deletions
|
|
@ -3895,3 +3895,23 @@ h2.h-section {
|
|||
.nav-level3 .nav-link.active::after {
|
||||
background-color:yellow;
|
||||
}
|
||||
|
||||
/**
|
||||
* Info after UpgradeCore
|
||||
*/
|
||||
#info_admin {
|
||||
font-size:140%;
|
||||
text-align: center;
|
||||
background-color: red;
|
||||
display:block;
|
||||
position:fixed;
|
||||
top:15rem;
|
||||
left:15%;
|
||||
width: 70%;
|
||||
padding:2.5em;
|
||||
border-radius:0.5em;
|
||||
scale:1.1;
|
||||
color: ghostwhite;
|
||||
opacity: 0.9;
|
||||
|
||||
}
|
||||
|
|
@ -388,9 +388,10 @@ if ($op=='upgradeCore')
|
|||
$progress->set_value(100);
|
||||
|
||||
$url=sprintf('<a href="%s"> install.php</a>', NOALYSS_URL."/install.php");
|
||||
printf(_("Afin de terminer l'installation aller sur %s , à la fin de la procédure , demandez à effacer le fichier install.php"),
|
||||
printf(_("Afin de terminer l'installation, aller sur %s. A la fin de la procédure de mise à jour, demander à effacer le fichier install.php"),
|
||||
$url);
|
||||
} catch (Exception $ex ) {
|
||||
record_log($ex);
|
||||
echo '<p class="notice">';
|
||||
echo $ex->getMessage();
|
||||
echo '</p>';
|
||||
|
|
|
|||
|
|
@ -59,16 +59,18 @@ $js="onclick='UpgradeCore()'";
|
|||
|
||||
echo HtmlInput::button("upgrade",_("Mise à jour de votre système"),$js);
|
||||
?>
|
||||
<div id="info_admin">
|
||||
|
||||
</div>
|
||||
<div style="display:none" id="info_admin"></div>
|
||||
<script>
|
||||
function UpgradeCore()
|
||||
{
|
||||
progress_bar_start('upgradeCore');
|
||||
new Ajax.Updater("info_admin","ajax_misc.php",{
|
||||
new Ajax.Request("ajax_misc.php",{
|
||||
method:'POST',
|
||||
parameters:{op:"upgradeCore",gDossier:0,task_id:'upgradeCore'
|
||||
},
|
||||
onSuccess:function (req) {
|
||||
$('info_admin').update(req.responseText);
|
||||
new Effect.Appear('info_admin',{duration:1})
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue