';
$output .= '
'.io_safe_output($text).'
';
$output .= html_print_image(
$img,
true,
[
- 'title' => $text_title,
- 'class' => $blink === true ? 'blink' : '',
+ 'title' => io_safe_output($text_title),
+ 'class' => ($blink === true) ? 'blink' : '',
'style' => 'width: 16px; height: 16px;',
],
false,
diff --git a/pandora_console/include/javascript/pandora.js b/pandora_console/include/javascript/pandora.js
index 83fbf57d54..180fb592d5 100644
--- a/pandora_console/include/javascript/pandora.js
+++ b/pandora_console/include/javascript/pandora.js
@@ -2364,6 +2364,29 @@ var formatterDataVerticalBar = function(value, ctx) {
}
};
+function open_tip(id) {
+ $("#tip_dialog_" + id).dialog({
+ title: $("#tip_dialog_" + id).data("title"),
+ modal: true,
+ maxWidth: 600,
+ minWidth: 400,
+ show: {
+ effect: "fade",
+ duration: 200
+ },
+ hide: {
+ effect: "fade",
+ duration: 200
+ },
+ closeOnEscape: true,
+ buttons: {
+ Close: function() {
+ $(this).dialog("close");
+ }
+ }
+ });
+}
+
// Show about section
$(document).ready(function() {
$("[id^='icon_about']").click(function() {
@@ -2457,33 +2480,6 @@ $(document).ready(function() {
});
}
}
-
- $("[id^='div_tip_']").click(function() {
- var id = $(this)
- .attr("id")
- .split("_")[2];
-
- $("#tip_dialog_" + id).dialog({
- title: $("#tip_dialog_" + id).data("title"),
- modal: true,
- maxWidth: 600,
- minWidth: 400,
- show: {
- effect: "fade",
- duration: 200
- },
- hide: {
- effect: "fade",
- duration: 200
- },
- closeOnEscape: true,
- buttons: {
- Close: function() {
- $(this).dialog("close");
- }
- }
- });
- });
});
function close_info_box(id) {
diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css
index 0e9d68cd5c..8e340928f7 100644
--- a/pandora_console/include/styles/pandora.css
+++ b/pandora_console/include/styles/pandora.css
@@ -3653,6 +3653,10 @@ div.tip > img {
margin-left: 10px;
}
+div.tip > div.invisible {
+ display: none !important;
+}
+
/*
* ---------------------------------------------------------------------
* - SEARCH BOX in header -