Fix multi submits for MSIE with <input type="image"..
This commit is contained in:
@@ -21,19 +21,19 @@ $GLOBALS['js_include'][] = 'tbl_structure.js';
|
|||||||
* submit_mult_*_x comes from IE if <input type="img" ...> is used
|
* submit_mult_*_x comes from IE if <input type="img" ...> is used
|
||||||
*/
|
*/
|
||||||
if (isset($_REQUEST['submit_mult_change_x'])) {
|
if (isset($_REQUEST['submit_mult_change_x'])) {
|
||||||
$submit_mult = __('Change');
|
$submit_mult = 'change';
|
||||||
} elseif (isset($_REQUEST['submit_mult_drop_x'])) {
|
} elseif (isset($_REQUEST['submit_mult_drop_x'])) {
|
||||||
$submit_mult = __('Drop');
|
$submit_mult = 'drop';
|
||||||
} elseif (isset($_REQUEST['submit_mult_primary_x'])) {
|
} elseif (isset($_REQUEST['submit_mult_primary_x'])) {
|
||||||
$submit_mult = __('Primary');
|
$submit_mult = 'primary';
|
||||||
} elseif (isset($_REQUEST['submit_mult_index_x'])) {
|
} elseif (isset($_REQUEST['submit_mult_index_x'])) {
|
||||||
$submit_mult = __('Index');
|
$submit_mult = 'index';
|
||||||
} elseif (isset($_REQUEST['submit_mult_unique_x'])) {
|
} elseif (isset($_REQUEST['submit_mult_unique_x'])) {
|
||||||
$submit_mult = __('Unique');
|
$submit_mult = 'unique';
|
||||||
} elseif (isset($_REQUEST['submit_mult_fulltext_x'])) {
|
} elseif (isset($_REQUEST['submit_mult_fulltext_x'])) {
|
||||||
$submit_mult = __('Fulltext');
|
$submit_mult = 'ftext';
|
||||||
} elseif (isset($_REQUEST['submit_mult_browse_x'])) {
|
} elseif (isset($_REQUEST['submit_mult_browse_x'])) {
|
||||||
$submit_mult = __('Browse');
|
$submit_mult = 'browse';
|
||||||
} elseif (isset($_REQUEST['submit_mult'])) {
|
} elseif (isset($_REQUEST['submit_mult'])) {
|
||||||
$submit_mult = $_REQUEST['submit_mult'];
|
$submit_mult = $_REQUEST['submit_mult'];
|
||||||
} elseif (isset($_REQUEST['mult_btn']) && $_REQUEST['mult_btn'] == __('Yes')) {
|
} 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'])) {
|
if (! empty($submit_mult) && isset($_REQUEST['selected_fld'])) {
|
||||||
$err_url = 'tbl_structure.php?' . PMA_generate_common_url($db, $table);
|
$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
|
// browsing the table displaying only selected fields/columns
|
||||||
$GLOBALS['active_page'] = 'sql.php';
|
$GLOBALS['active_page'] = 'sql.php';
|
||||||
$sql_query = '';
|
$sql_query = '';
|
||||||
|
Reference in New Issue
Block a user