diff --git a/js/config.js b/js/config.js index 6ca16119b..dd18a29f1 100644 --- a/js/config.js +++ b/js/config.js @@ -597,7 +597,6 @@ $(function() { link.css({display: 'inline-block', opacity: 0.25}); if (link.hasClass('restore-default')) { // restore-default is handled by markField - link.find('img').hide(); } link.bind({ mouseenter: function() {$(this).css('opacity', 1);}, diff --git a/libraries/config/FormDisplay.class.php b/libraries/config/FormDisplay.class.php index 7c77d0472..6b2c13352 100644 --- a/libraries/config/FormDisplay.class.php +++ b/libraries/config/FormDisplay.class.php @@ -313,7 +313,7 @@ class FormDisplay $translated_path, $show_restore_default, $userprefs_allow, array &$js_default) { $name = PMA_lang_name($system_path); - $description = PMA_lang_desc($system_path); + $description = PMA_lang_name($system_path, 'desc', ''); $cf = ConfigFile::getInstance(); $value = $cf->get($work_path); @@ -328,7 +328,8 @@ class FormDisplay 'doc' => $this->getDocLink($system_path), 'wiki' => $this->getWikiLink($system_path), 'show_restore_default' => $show_restore_default, - 'userprefs_allow' => $userprefs_allow); + 'userprefs_allow' => $userprefs_allow, + 'userprefs_comment' => PMA_lang_name($system_path, 'cmt', '')); if (isset($form->default[$system_path])) { $opts['setvalue'] = $form->default[$system_path]; } diff --git a/libraries/config/FormDisplay.tpl.php b/libraries/config/FormDisplay.tpl.php index ed6e22297..696a5b6f2 100644 --- a/libraries/config/FormDisplay.tpl.php +++ b/libraries/config/FormDisplay.tpl.php @@ -105,6 +105,7 @@ function display_fieldset_top($title = '', $description = '', $errors = null, $a * o setvalue - (string) shows button allowing to set poredefined value * o show_restore_default - (boolean) whether show "restore default" button * o userprefs_allow - whether user preferences are enabled for this field (null - no support, true/false - enabled/disabled) + * o userprefs_comment - (string) field comment * o values - key - value paris for