ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject ignite git commit: IGNITE-843 Hack for popover show.
Date Mon, 14 Sep 2015 08:54:22 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843 cefd00952 -> f89aae96d


IGNITE-843 Hack for popover show.


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

Branch: refs/heads/ignite-843
Commit: f89aae96d838acccc226bf64cc699d0ff3aba104
Parents: cefd009
Author: Alexey Kuznetsov <akuznetsov@apache.org>
Authored: Mon Sep 14 15:55:03 2015 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
Committed: Mon Sep 14 15:55:03 2015 +0700

----------------------------------------------------------------------
 .../src/main/js/controllers/common-module.js    | 24 +++++++++++++++-----
 1 file changed, 18 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/f89aae96/modules/control-center-web/src/main/js/controllers/common-module.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/common-module.js b/modules/control-center-web/src/main/js/controllers/common-module.js
index 0c33785..2593a9b 100644
--- a/modules/control-center-web/src/main/js/controllers/common-module.js
+++ b/modules/control-center-web/src/main/js/controllers/common-module.js
@@ -472,7 +472,11 @@ controlCenterModule.service('$common', [
             }
         }
 
+        var popoverShown = false;
+
         function showPopoverMessage(panels, panelId, id, message) {
+            popoverShown = false;
+
             ensureActivePanel(panels, panelId, id);
 
             var el = $('body').find('#' + id);
@@ -482,13 +486,21 @@ controlCenterModule.service('$common', [
 
             var newPopover = $popover(el, {content: message});
 
-            $timeout(function () {
-                if (isDefined(newPopover.$options.container)) {
-                    newPopover.show();
+            function _showPopover() {
+                if (!popoverShown)
+                    $timeout(function () {
+                        if (isDefined(newPopover.$options.container)) {
+                            newPopover.show();
 
-                    popover = newPopover;
-                }
-            }, 100);
+                            popover = newPopover;
+
+                            popoverShown = true;
+                        }
+                        else _showPopover();
+                    }, 100);
+            }
+
+            _showPopover();
 
             $timeout(function () { newPopover.hide() }, 5000);
 


Mime
View raw message