Notifications widget: support custom interval

If 'interval' attribute is passed in notification object, use that
interval instead of the default.

Conflicts:
	ui/scripts/ui/widgets/notifications.js
This commit is contained in:
Brian Federle 2012-07-24 14:02:46 -07:00
parent 003c62583c
commit d7d9b341c8
1 changed files with 1 additions and 1 deletions

View File

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