mirror of
https://github.com/e107inc/e107.git
synced 2025-08-08 23:56:58 +02:00
Update ready popover.
This commit is contained in:
@@ -63,14 +63,19 @@ if(in_array($pref['adminstyle'], array('infopanel', 'flexpanel')))
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
define('e_ADMIN_HOME', true); // used by some admin shortcodes.
|
||||
|
||||
require_once(e_ADMIN.'boot.php');
|
||||
require_once(e_ADMIN.'auth.php');
|
||||
require_once(e_HANDLER.'upload_handler.php');
|
||||
new admin_start;
|
||||
|
||||
require_once(e_ADMIN.'auth.php');
|
||||
|
||||
|
||||
e107::getDb()->db_Mark_Time('(Start Admin Checks)');
|
||||
new admin_start;
|
||||
|
||||
|
||||
e107::getDb()->db_Mark_Time('(After Admin Checks)');
|
||||
$mes = e107::getMessage();
|
||||
@@ -254,6 +259,7 @@ class admin_start
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
$checked = e107::getSession()->get('core-update-checked');
|
||||
|
||||
if(!deftrue('e_DEBUG') && $checked === true && !deftrue('e_DEVELOPER'))
|
||||
@@ -275,8 +281,25 @@ class admin_start
|
||||
e107::getSession()->set('core-update-checked',true);
|
||||
e107::getMessage()->addDebug("Checking for core updates");
|
||||
|
||||
|
||||
if(update_check() === true)
|
||||
{
|
||||
|
||||
$JS = <<<TMPO
|
||||
$(function () {
|
||||
|
||||
$('[data-toggle="popover"]').popover('show');
|
||||
$('.popover').on('click', function() {
|
||||
$('[data-toggle="popover"]').popover('hide');
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
TMPO;
|
||||
|
||||
e107::js('footer-inline', $JS);
|
||||
e107::css('inline', '.hide.e-popover { display:block!important }');
|
||||
|
||||
if(e_DEBUG !== true)
|
||||
{
|
||||
$this->exit = true;
|
||||
|
Reference in New Issue
Block a user