From 4a8bd1cf5cb71fb090febc6ea52cfb9b7910d7f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Tue, 5 Dec 2017 15:53:14 -0200 Subject: [PATCH] Fix toggle button not showing background image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- libraries/classes/Util.php | 6 ++---- themes/original/css/common.css.php | 5 +++-- themes/pmahomme/css/common.css.php | 5 +++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libraries/classes/Util.php b/libraries/classes/Util.php index d94ad75c1d..829ccbd6dc 100644 --- a/libraries/classes/Util.php +++ b/libraries/classes/Util.php @@ -2594,11 +2594,9 @@ class Util 'pma_theme_image' => $GLOBALS['pmaThemeImage'], 'text_dir' => $GLOBALS['text_dir'], 'link_on' => $link_on, - 'toggle_on' => str_replace(' ', ' ', htmlspecialchars( - $options[1]['label'])), - 'toggle_off' => str_replace(' ', ' ', htmlspecialchars( - $options[0]['label'])), 'link_off' => $link_off, + 'toggle_on' => $options[1]['label'], + 'toggle_off' => $options[0]['label'], 'callback' => $callback, 'state' => $state ]); diff --git a/themes/original/css/common.css.php b/themes/original/css/common.css.php index 0fd1dc5ac5..132e075b74 100644 --- a/themes/original/css/common.css.php +++ b/themes/original/css/common.css.php @@ -2012,9 +2012,10 @@ fieldset .disabled-field td { .toggleButton .container { position: absolute; } -.toggleButton .container td { +.toggleButton .container td, +.toggleButton .container tr { background-image: none; - background: none; + background: none !important; } .toggleButton .toggleOn { color: #fff; diff --git a/themes/pmahomme/css/common.css.php b/themes/pmahomme/css/common.css.php index 68cc29761d..a4ea32b059 100644 --- a/themes/pmahomme/css/common.css.php +++ b/themes/pmahomme/css/common.css.php @@ -2529,9 +2529,10 @@ fieldset .disabled-field td { .toggleButton .container { position: absolute; } -.toggleButton .container td { +.toggleButton .container td, +.toggleButton .container tr { background-image: none; - background: none; + background: none !important; } .toggleButton .toggleOn { color: #fff;