Fix multi submits for MSIE with <input type="image"..

This commit is contained in:
Michal Čihař
2011-03-18 14:55:27 +01:00
parent 5f1f0a8bdb
commit 0e63bd0487

View File

@@ -21,19 +21,19 @@ $GLOBALS['js_include'][] = 'tbl_structure.js';
* submit_mult_*_x comes from IE if <input type="img" ...> is used
*/
if (isset($_REQUEST['submit_mult_change_x'])) {
$submit_mult = __('Change');
$submit_mult = 'change';
} elseif (isset($_REQUEST['submit_mult_drop_x'])) {
$submit_mult = __('Drop');
$submit_mult = 'drop';
} elseif (isset($_REQUEST['submit_mult_primary_x'])) {
$submit_mult = __('Primary');
$submit_mult = 'primary';
} elseif (isset($_REQUEST['submit_mult_index_x'])) {
$submit_mult = __('Index');
$submit_mult = 'index';
} elseif (isset($_REQUEST['submit_mult_unique_x'])) {
$submit_mult = __('Unique');
$submit_mult = 'unique';
} elseif (isset($_REQUEST['submit_mult_fulltext_x'])) {
$submit_mult = __('Fulltext');
$submit_mult = 'ftext';
} elseif (isset($_REQUEST['submit_mult_browse_x'])) {
$submit_mult = __('Browse');
$submit_mult = 'browse';
} elseif (isset($_REQUEST['submit_mult'])) {
$submit_mult = $_REQUEST['submit_mult'];
} elseif (isset($_REQUEST['mult_btn']) && $_REQUEST['mult_btn'] == __('Yes')) {
@@ -45,7 +45,7 @@ if (isset($_REQUEST['submit_mult_change_x'])) {
if (! empty($submit_mult) && isset($_REQUEST['selected_fld'])) {
$err_url = 'tbl_structure.php?' . PMA_generate_common_url($db, $table);
if ($submit_mult == __('Browse')) {
if ($submit_mult == 'browse') {
// browsing the table displaying only selected fields/columns
$GLOBALS['active_page'] = 'sql.php';
$sql_query = '';