Remove id from display options slider

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
Madhura Jayaratne 2014-11-27 17:19:53 +05:30
parent ff393b207e
commit 201b744650
2 changed files with 8 additions and 5 deletions

View File

@ -1624,7 +1624,7 @@ class PMA_DisplayResults
$options_html .= PMA_URL_getHiddenInputs($url_params)
. '<br />'
. PMA_Util::getDivForSliderEffect(
'displayoptions', __('Options')
'', __('Options')
)
. '<fieldset>';

View File

@ -2722,10 +2722,10 @@ class PMA_Util
* @return string html div element
*
*/
public static function getDivForSliderEffect($id, $message)
public static function getDivForSliderEffect($id = '', $message = '')
{
if ($GLOBALS['cfg']['InitialSlidersState'] == 'disabled') {
return '<div id="' . $id . '">';
return '<div' . ($id ? ' id="' . $id . '"' : '') . '>';
}
/**
* Bad hack on the next line. document.write() conflicts with jQuery,
@ -2736,11 +2736,14 @@ class PMA_Util
* append to
*/
return '<div id="' . $id . '"'
return '<div'
. ($id ? ' id="' . $id . '"' : '')
. (($GLOBALS['cfg']['InitialSlidersState'] == 'closed')
? ' style="display: none; overflow:auto;"'
: '')
. ' class="pma_auto_slider" title="' . htmlspecialchars($message) . '">';
. ' class="pma_auto_slider"'
. ($message ? ' title="' . htmlspecialchars($message) . '"' : '')
. '>';
}
/**