diff --git a/ChangeLog b/ChangeLog index cd79999fb..2e01e42af 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ $Source$ - Be more verbose on error. - Drop tables used for layout. - Add support for groupping options. + - Support for forcing one of two bool/bgroups. * css/phpmyadmin.css.php, themes/darkblue_orange/css/theme_right.css.php, themes/original/css/theme_right.css.php: New style for non table forms used in plugins. diff --git a/libraries/plugin_interface.lib.php b/libraries/plugin_interface.lib.php index f233b885f..cc7644e67 100644 --- a/libraries/plugin_interface.lib.php +++ b/libraries/plugin_interface.lib.php @@ -175,7 +175,15 @@ function PMA_pluginGetOneOption($section, $plugin_name, $id, &$opt) $ret .= '
' . "\n"; $ret .= ''; + . ' ' . PMA_pluginCheckboxCheck($section, $plugin_name . '_' . $opt['name']); + if (isset($opt['force'])) { + /* Same code is also few lines lower, update both if needed */ + $ret .= ' onclick="if (!this.checked && ' + . '(!document.getElementById(\'checkbox_' . $plugin_name . '_' .$opt['force'] . '\') ' + . '|| !document.getElementById(\'checkbox_' . $plugin_name . '_' .$opt['force'] . '\').checked)) ' + . 'return false; else return true;"'; + } + $ret .= ' />'; $ret .= ''; $ret .= '
' . "\n"; @@ -214,7 +222,15 @@ function PMA_pluginGetOneOption($section, $plugin_name, $id, &$opt) if (!empty($opt['name'])) { $ret .= ''; + . ' ' . PMA_pluginCheckboxCheck($section, $plugin_name . '_' . $opt['name']); + if (isset($opt['force'])) { + /* Same code is also few lines higher, update both if needed */ + $ret .= ' onclick="if (!this.checked && ' + . '(!document.getElementById(\'checkbox_' . $plugin_name . '_' .$opt['force'] . '\') ' + . '|| !document.getElementById(\'checkbox_' . $plugin_name . '_' .$opt['force'] . '\').checked)) ' + . 'return false; else return true;"'; + } + $ret .= ' />'; $ret .= ''; } else {