3.0.0.5 Portal Security, Commodity, Code Types, Codes.
This commit is contained in:
@@ -327,26 +327,23 @@
|
||||
{
|
||||
win.clearTimeout(sbm.toNotification);
|
||||
var $win = $(win);
|
||||
var $main = $('#sbm-page-body main');
|
||||
var $not = $('#sbm-notification').hide();
|
||||
if (!$not.length)
|
||||
{
|
||||
$not = $('<div id="sbm-notification"><div class="content"><div class="heading"><div class="close" onclick="sbm.hideNotification()">✖</div><div class="title"></div></div><div class="message"></div></div></div>');
|
||||
$('body').append($not);
|
||||
($main.length ? $main : $('body')).append($not);
|
||||
}
|
||||
var $hdr = $('.heading', $not).css({ 'background-color': 'rgba(247,217,0,0.7)' });
|
||||
$('.title', $not).html(title);
|
||||
$('.message', $not).html(msg);
|
||||
var $bdy = $('#sbm-page-body');
|
||||
$not.find('.title').html(title).end().find('.message').html(msg);
|
||||
//sbm.debug(sbm.topMargin($bdy));
|
||||
var fbr = $bdy[0].getBoundingClientRect();
|
||||
var fn = function () { $hdr.delay(2000).animate({ backgroundColor: '#f0f0f0' }, 1000); };
|
||||
$not.css({ 'top': Math.max(0, fbr.top /*- sbm.topMargin($bdy)*/), 'right': $win.width() - fbr.right }).slideDown(500, fn);
|
||||
$not.show(500, function () { $hdr.delay(2000).animate({ backgroundColor: '#f0f0f0' }, 1000); });
|
||||
sbm.toNotification = setTimeout(sbm.hideNotification, 6000);
|
||||
}
|
||||
sbm.hideNotification = function ()
|
||||
{
|
||||
win.clearTimeout(sbm.toNotification);
|
||||
$('#sbm-notification').slideUp(500);
|
||||
$('#sbm-notification').hide(500);
|
||||
}
|
||||
sbm.doPleaseWait = function ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user