Handle the multiple columns Change input (for IE < 9)

This commit is contained in:
Marc Delisle 2012-12-18 08:19:13 -05:00
parent 56c2393978
commit 4547c9a7c8
2 changed files with 4 additions and 3 deletions

View File

@ -23,7 +23,7 @@
*/
AJAX.registerTeardown('tbl_structure.js', function() {
$("a.change_column_anchor.ajax").die('click');
$("button.change_columns_anchor.ajax").die('click');
$("button.change_columns_anchor.ajax, input.change_columns_anchor.ajax").die('click');
$("a.drop_column_anchor.ajax").die('click');
$("a.add_primary_key_anchor.ajax").die('click');
$('a.drop_primary_key_index_anchor.ajax').die('click');
@ -55,7 +55,7 @@ AJAX.registerOnload('tbl_structure.js', function() {
*
* (see $GLOBALS['cfg']['AjaxEnable'])
*/
$("button.change_columns_anchor.ajax").live('click', function(event) {
$("button.change_columns_anchor.ajax, input.change_columns_anchor.ajax").live('click', function(event) {
event.preventDefault();
$('#page_content').hide();
var $form = $(this).closest('form');

View File

@ -2321,7 +2321,7 @@ class PMA_Util
* Generate a button or image tag
*
* @param string $button_name name of button element
* @param string $button_class class of button element
* @param string $button_class class of button or image element
* @param string $image_name name of image element
* @param string $text text to display
* @param string $image image to display
@ -2348,6 +2348,7 @@ class PMA_Util
/* IE (before version 9) has trouble with <button> */
if (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER < 9) {
return '<input type="image" name="' . $image_name
. '" class="' . $button_class
. '" value="' . htmlspecialchars($value)
. '" title="' . htmlspecialchars($text)
. '" src="' . $GLOBALS['pmaThemeImage']. $image . '" />'