* Adjust for show messager.
This commit is contained in:
@@ -891,3 +891,4 @@ window.startCron = function(restart)
|
||||
|
||||
turnon ? browserNotify() : ping();
|
||||
if(runnable) startCron();
|
||||
if(scoreNotice) zui.Messager.show({ content: {html: scoreNotice}, placement: 'bottom-right', time: 0, icon: 'diamond', className: 'primary-pale' });
|
||||
|
||||
@@ -27,6 +27,10 @@ jsVar('pollTime', (!empty($config->message->browser->turnon) && isset($config
|
||||
jsVar('turnon', empty($config->message->browser->turnon) ? 0 : 1);
|
||||
jsVar('runnable', $this->loadModel('cron')->runnable());
|
||||
|
||||
$scoreNotice = '';
|
||||
if($config->vision != 'lite') $scoreNotice = $this->loadModel('score')->getNotice();
|
||||
jsVar('scoreNotice', $scoreNotice);
|
||||
|
||||
set::zui(true);
|
||||
set::bodyClass($this->cookie->hideMenu ? 'hide-menu' : 'show-menu');
|
||||
|
||||
@@ -105,8 +109,4 @@ div
|
||||
),
|
||||
);
|
||||
|
||||
$scoreNotice = '';
|
||||
if($config->vision != 'lite') $scoreNotice = $this->loadModel('score')->getNotice();
|
||||
div(setID('noticeBox'), empty($scoreNotice) ? null : html($scoreNotice));
|
||||
|
||||
render('pagebase');
|
||||
|
||||
@@ -359,14 +359,6 @@ class scoreModel extends model
|
||||
->fetch('score');
|
||||
if(!$score) return '';
|
||||
|
||||
$notice = sprintf($this->lang->score->tips, $score, $this->app->user->score);
|
||||
$fullNotice = <<<EOT
|
||||
<div id='noticeAttend' class='alert alert-success with-icon alert-dismissable' style='width:310px; position:fixed; bottom:25px; right:15px; z-index: 9999;' id='planInfo'>
|
||||
<i class='icon icon-diamond'> </i>
|
||||
<div class='content'>{$notice}</div>
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
</div>
|
||||
EOT;
|
||||
return $fullNotice;
|
||||
return sprintf($this->lang->score->tips, $score, $this->app->user->score);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user