Notifications widget: support custom interval

If 'interval' attribute is passed in notification object, use that
interval instead of the default.
This commit is contained in:
Brian Federle 2012-07-24 14:02:46 -07:00
parent 6d9ca0aa52
commit c30eb2fd75
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@
cloudStack.ui.event.call('addNotification', {
section: notification.section,
desc: notification.desc,
interval: 5000,
interval: notification.interval ? notification.interval : 5000,
_custom: notification._custom,
poll: function(args) {
var complete = args.complete;