patch #2494192 [display] Possibility of disabling the sliders

This commit is contained in:
Marc Delisle
2009-01-14 17:47:47 +00:00
parent bd3595f7cb
commit 424342c014
3 changed files with 8 additions and 1 deletions

View File

@@ -19,6 +19,8 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- patch #2486825 [lang] Wrong string in setup script hints,
thanks to Isaac Bennetch - ibennetch
- patch #2498350 [cleanup] XHTML cleanup, thanks to Virsacer - virsacer
+ patch #2494192 [display] Possibility of disabling the sliders,
thanks to Virsacer - virsacer
3.1.3.0 (not yet released)
+ [lang] Turkish update, thanks to Burak Yavuz

View File

@@ -1986,7 +1986,8 @@ setfacl -d -m "g:www-data:rwx" tmp
<dt id="cfg_InitialSlidersState">$cfg['InitialSlidersState'] string</dt>
<dd>If set to <tt>'closed'</tt>, the visual sliders are initially in a
closed state. A value of 'open' does the reverse.</dd>
closed state. A value of <tt>'open'</tt> does the reverse. To completely
disable all visual sliders, use <tt>'disabled'</tt>.</dd>
<dt id="cfg_TitleTable">$cfg['TitleTable'] string</dt>
<dt id="cfg_TitleDatabase">$cfg['TitleDatabase'] string</dt>

View File

@@ -2396,6 +2396,10 @@ function PMA_generate_html_dropdown($select_name, $choices, $active_choice)
*/
function PMA_generate_slider_effect($id, $message)
{
if ($GLOBALS['cfg']['InitialSlidersState'] == 'disabled') {
echo '<div id="' . $id . '">';
return;
}
?>
<script type="text/javascript">
// <![CDATA[