mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Error appearance for notifications corner alert
This commit is contained in:
parent
03d1f40c9a
commit
4c05adaac0
@ -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;
|
||||
|
||||
@ -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');
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user