incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [2/2] git commit: Notifications widget: support custom interval
Date Tue, 24 Jul 2012 22:31:03 GMT
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


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/d7d9b341
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/d7d9b341
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/d7d9b341

Branch: refs/heads/master
Commit: d7d9b341c88e65783ca4574a4302543409605ff8
Parents: 003c625
Author: Brian Federle <brian.federle@citrix.com>
Authored: Tue Jul 24 14:02:46 2012 -0700
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Tue Jul 24 15:30:47 2012 -0700

----------------------------------------------------------------------
 ui/scripts/ui/widgets/notifications.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/d7d9b341/ui/scripts/ui/widgets/notifications.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/notifications.js b/ui/scripts/ui/widgets/notifications.js
index 5ab5fcc..007e405 100644
--- a/ui/scripts/ui/widgets/notifications.js
+++ b/ui/scripts/ui/widgets/notifications.js
@@ -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;


Mime
View raw message