Add error handling to notifications widget

This commit is contained in:
Brian Federle 2011-11-17 16:21:13 -08:00
parent a68fba3a8d
commit 3ac7fb889b
1 changed files with 7 additions and 0 deletions

View File

@ -86,6 +86,13 @@
if (args.message) {
cloudStack.dialog.notice({ message: args.message });
}
clearInterval(pollTimer);
notifications.activeTasks.pop(pollTimer);
notifications.cornerAlert({ message: 'ERROR: ' + $item.html() });
$item.removeClass('pending').addClass('error');
if (additionalComplete) additionalComplete();
}
});
}, args.interval);