Error appearance for notifications corner alert

This commit is contained in:
Brian Federle 2012-02-10 15:00:29 -08:00
parent 03d1f40c9a
commit 4c05adaac0
2 changed files with 9 additions and 1 deletions

View File

@ -945,6 +945,10 @@ div.notification.corner-alert div.title span {
font-weight: bold;
}
div.notification.corner-alert.error div.title span {
background: url(../images/icons.png) no-repeat -4px -190px;
}
div.notification.corner-alert div.message span {
position: relative;
padding-top: 6px;

View File

@ -25,6 +25,10 @@
)
);
if (options.error) {
$cornerAlert.addClass('error');
}
return $cornerAlert
.css({
position: 'absolute',
@ -95,7 +99,7 @@
clearInterval(pollTimer);
notifications.activeTasks.pop(pollTimer);
notifications.cornerAlert({ message: $item.html() }, {
error: _l('ERROR')
error: _l('label.error')
});
$item.removeClass('pending').addClass('error');