Repository: cloudstack Updated Branches: refs/heads/master 9769ab329 -> 4dad376f9
UI: Make sure notification box is removed on session expire Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/4dad376f Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/4dad376f Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/4dad376f Branch: refs/heads/master Commit: 4dad376f98a5805751f613f29e9544d22efe2891 Parents: 9769ab3 Author: Brian Federle <[email protected]> Authored: Thu Feb 27 13:26:32 2014 -0800 Committer: Brian Federle <[email protected]> Committed: Thu Feb 27 13:26:32 2014 -0800 ---------------------------------------------------------------------- ui/scripts/cloudStack.js | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4dad376f/ui/scripts/cloudStack.js ---------------------------------------------------------------------- diff --git a/ui/scripts/cloudStack.js b/ui/scripts/cloudStack.js index 33e84e9..be7692d 100644 --- a/ui/scripts/cloudStack.js +++ b/ui/scripts/cloudStack.js @@ -102,6 +102,10 @@ $('#user-options a').eq(0).trigger('click'); }; + if ($('.notification-box:visible').size()) { + $('.notification-box, div.overlay:first').remove(); + } + cloudStack.dialog.notice({ message: _l('label.session.expired'), clickAction: clickAction
