From accac98aaeaca8f054618aaef82900a4d49482d8 Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Mon, 22 Feb 2016 10:20:46 +0100 Subject: [PATCH] New maps in progress... (node tooltips) --- .../include/javascript/map/MapController.js | 6 +- pandora_console/include/styles/pandora.css | 121 ------------------ .../include/styles/tooltipster-noir.css | 2 +- 3 files changed, 5 insertions(+), 124 deletions(-) diff --git a/pandora_console/include/javascript/map/MapController.js b/pandora_console/include/javascript/map/MapController.js index b483de54ab..5d6df85ef4 100644 --- a/pandora_console/include/javascript/map/MapController.js +++ b/pandora_console/include/javascript/map/MapController.js @@ -132,12 +132,14 @@ MapController.prototype.click_event = function(event) { event.stopPropagation(); switch (event.which) { case 1: - if ($(event.currentTarget).attr("class") == "node") { + if ($(event.currentTarget).hasClass("node")) { self.tooltip_map_create(self, event); } + else { + self.tooltip_map_close(self, event); + } break; case 2: - self.tooltip_map_close(self, event); break; case 3: break; diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index 2b34cc6904..d6833dad11 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -3123,124 +3123,3 @@ table#policy_modules td * { transform: rotate(359deg); } } - -/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -/*++++++++++++++++++++++++++++++ PROVISIONAL +++++++++++++++++++++++++++++*/ -/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ - -/* Top arrow to nodes dialog (Networkmap) */ -.nodeDialogTop { - position: relative; - background: #82b92e; -} -.nodeDialogTop:after { - bottom: 100%; - left: 8%; - border: solid transparent; - content: " "; - height: 0; - width: 0; - position: absolute; - pointer-events: none; - border-color: transparent; - border-bottom-color: #82b92e; - border-width: 15px; - margin-left: -15px; -} -.nodeDialogTop2 { - float: left; - position: relative; - background: #82b92e; -} -.nodeDialogTop2:after { - bottom: 100%; - right: 8%; - border: solid transparent; - content: " "; - height: 0; - width: 0; - position: absolute; - pointer-events: none; - border-color: transparent; - border-bottom-color: #82b92e; - border-width: 15px; - margin-left: -15px; -} - -/* Bottom arrow to nodes dialog (Networkmap) */ -.nodeDialogBottom { - position: relative; - background: #82b92e; -} -.nodeDialogBottom:after { - top: 100%; - right: 8%; - border: solid transparent; - content: " "; - height: 0; - width: 0; - position: absolute; - pointer-events: none; - border-color: transparent; - border-top-color: #82b92e; - border-width: 15px; - margin-left: -15px; -} -.nodeDialogBottom2 { - position: relative; - background: #82b92e; -} -.nodeDialogBottom2:after { - top: 100%; - left: 8%; - border: solid transparent; - content: " "; - height: 0; - width: 0; - position: absolute; - pointer-events: none; - border-color: transparent; - border-top-color: #82b92e; - border-width: 15px; - margin-left: -15px; -} - -/* Right arrow to nodes dialog (Networkmap) */ -.nodeDialogRight { - position: relative; - background: #82b92e; -} -.nodeDialogRight:after { - left: 100%; - top: 50%; - border: solid transparent; - content: " "; - height: 0; - width: 0; - position: absolute; - pointer-events: none; - border-color: transparent; - border-left-color: #82b92e; - border-width: 15px; - margin-top: -15px; -} - -/* Left arrow to nodes dialog (Networkmap) */ -.nodeDialogLeft { - position: relative; - background: #82b92e; -} -.nodeDialogLeft:after { - right: 100%; - top: 50%; - border: #82b92e; - content: " "; - height: 0; - width: 0; - position: absolute; - pointer-events: none; - border-color: transparent; - border-right-color: #82b92e; - border-width: 15px; - margin-top: -15px; -} diff --git a/pandora_console/include/styles/tooltipster-noir.css b/pandora_console/include/styles/tooltipster-noir.css index 8ba08618cc..29e67e93be 100644 --- a/pandora_console/include/styles/tooltipster-noir.css +++ b/pandora_console/include/styles/tooltipster-noir.css @@ -1,6 +1,6 @@ .tooltipster-noir { border-radius: 0px; - border: 3px solid #82E92B; + border: 3px solid #82B92E; background: #fff; color: #2c2c2c; }