Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove inline styles from elements with id='serverstatusquerieschart_… #12823

Merged
merged 7 commits into from Jan 18, 2017
2 changes: 1 addition & 1 deletion libraries/server_status_queries.lib.php
Expand Up @@ -135,7 +135,7 @@ function PMA_getHtmlForServerStatusQueriesDetails($ServerStatusData)
$retval .= '</table>';

$retval .= '<div id="serverstatusquerieschart"></div>';
$retval .= '<div id="serverstatusquerieschart_data" style="display:none;">';
$retval .= '<div id="serverstatusquerieschart_data">';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO in this particular case the div should be rather removed and the data moved to data attribute of serverstatusquerieschart div.

if ($other_sum > 0) {
$chart_json[__('Other')] = $other_sum;
}
Expand Down
4 changes: 4 additions & 0 deletions themes/original/css/common.css.php
Expand Up @@ -1642,6 +1642,10 @@
vertical-align: baseline;
}

#serverstatusquerieschart_data {
display: none;
}

#popup_background {
display: none;
position: fixed;
Expand Down
4 changes: 4 additions & 0 deletions themes/pmahomme/css/common.css.php
Expand Up @@ -2140,6 +2140,10 @@
vertical-align: baseline;
}

#serverstatusquerieschart_data {
display: none;
}

#popup_background {
display: none;
position: fixed;
Expand Down