diff --git a/ChangeLog b/ChangeLog index 287cb50daf..af5f9c87cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -78,6 +78,7 @@ VerboseMultiSubmit, ReplaceHelpImg + Upgraded jquery to v1.8.3 and jquery-ui to v1.9.2 + Patch #3597529 [status] Add raw value as title on server status page + Support MySQL 5.6 partitioning ++ Removed the AjaxEnable directive 3.5.6.0 (not yet released) - bug #3593604 [status] Erroneous advisor rule diff --git a/db_tracking.php b/db_tracking.php index 97d03ee22a..92391c3eac 100644 --- a/db_tracking.php +++ b/db_tracking.php @@ -134,7 +134,7 @@ if (PMA_DBI_num_rows($all_tables_result) > 0) { - + | | diff --git a/doc/config.rst b/doc/config.rst index aab266c858..6aa817e3e4 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -993,16 +993,6 @@ Generic settings If you have only one server configured, :config:option:`$cfg['ServerDefault']` MUST be set to that server. -.. config:option:: $cfg['AjaxEnable'] - - :type: boolean - :default: true - - Defines whether to refresh only parts of certain pages using Ajax - techniques. Applies only where a non-Ajax behavior is possible; for - example, the Designer feature is Ajax-only so this directive does not - apply to it. - .. config:option:: $cfg['VersionCheck'] :type: boolean diff --git a/index.php b/index.php index cdf4ed3010..35fabc3b55 100644 --- a/index.php +++ b/index.php @@ -32,7 +32,7 @@ foreach ($drops as $each_drop) { } unset($drops, $each_drop); -// If we have a valid a valid target, lets load that script instead +// If we have a valid a valid target, let's load that script instead if (! empty($_REQUEST['target']) && is_string($_REQUEST['target']) && ! preg_match('/^index/', $_REQUEST['target']) @@ -135,11 +135,7 @@ if ($server > 0 // Logout for advanced authentication if ($cfg['Server']['auth_type'] != 'config') { if ($cfg['ShowChgPassword']) { - if ($GLOBALS['cfg']['AjaxEnable']) { - $conditional_class = 'ajax'; - } else { - $conditional_class = null; - } + $conditional_class = 'ajax'; PMA_printListItem( __('Change password'), 'li_change_password', diff --git a/js/db_operations.js b/js/db_operations.js index dddc64ad4f..44f255b9c7 100644 --- a/js/db_operations.js +++ b/js/db_operations.js @@ -31,8 +31,6 @@ AJAX.registerOnload('db_operations.js', function() { /** * Ajax event handlers for 'Rename Database' - * - * @see $cfg['AjaxEnable'] */ $("#rename_db_form.ajax").live('submit', function(event) { event.preventDefault(); @@ -87,8 +85,6 @@ AJAX.registerOnload('db_operations.js', function() { /** * Ajax Event Handler for 'Copy Database' - * - * @see $cfg['AjaxEnable'] */ $("#copy_db_form.ajax").live('submit', function(event) { event.preventDefault(); @@ -117,8 +113,6 @@ AJAX.registerOnload('db_operations.js', function() { /** * Ajax Event handler for 'Change Charset' of the database - * - * @see $cfg['AjaxEnable'] */ $("#change_db_charset_form.ajax").live('submit', function(event) { event.preventDefault(); diff --git a/js/db_search.js b/js/db_search.js index ac50b1c39f..b24848a561 100644 --- a/js/db_search.js +++ b/js/db_search.js @@ -31,33 +31,28 @@ AJAX.registerTeardown('db_search.js', function() { * * @param result_path Url of the page to load * @param table_name Name of table to browse - * @param ajaxEnable Whether to use ajax or not * * @return nothing */ -function loadResult(result_path, table_name, link, ajaxEnable) +function loadResult(result_path, table_name, link) { $(function() { - if (ajaxEnable) { - /** Hides the results shown by the delete criteria */ - var $msg = PMA_ajaxShowMessage(PMA_messages['strBrowsing'], false); - $('#sqlqueryform').hide(); - $('#togglequerybox').hide(); - /** Load the browse results to the page */ - $("#table-info").show(); - $('#table-link').attr({"href" : 'sql.php?'+link }).text(table_name); - var url = result_path + " #sqlqueryresults"; - $('#browse-results').load(url, null, function() { - $('html, body') - .animate({ - scrollTop: $("#browse-results").offset().top - }, 1000); - PMA_ajaxRemoveMessage($msg); - PMA_makegrid($('#table_results')[0], true, true, true, true); - }).show(); - } else { - event.preventDefault(); - } + /** Hides the results shown by the delete criteria */ + var $msg = PMA_ajaxShowMessage(PMA_messages['strBrowsing'], false); + $('#sqlqueryform').hide(); + $('#togglequerybox').hide(); + /** Load the browse results to the page */ + $("#table-info").show(); + $('#table-link').attr({"href" : 'sql.php?'+link }).text(table_name); + var url = result_path + " #sqlqueryresults"; + $('#browse-results').load(url, null, function() { + $('html, body') + .animate({ + scrollTop: $("#browse-results").offset().top + }, 1000); + PMA_ajaxRemoveMessage($msg); + PMA_makegrid($('#table_results')[0], true, true, true, true); + }).show(); }); } @@ -66,11 +61,10 @@ function loadResult(result_path, table_name, link, ajaxEnable) * * @param result_path Url of the page to load * @param msg Text for the confirmation dialog - * @param ajaxEnable Whether to use ajax or not * * @return nothing */ -function deleteResult(result_path, msg, ajaxEnable) +function deleteResult(result_path, msg) { $(function() { /** Hides the results shown by the browse criteria */ @@ -80,28 +74,24 @@ function deleteResult(result_path, msg, ajaxEnable) $('#togglequerybox').hide(); /** Conformation message for deletion */ if (confirm(msg)) { - if (ajaxEnable) { - var $msg = PMA_ajaxShowMessage(PMA_messages['strDeleting'], false); - /** Load the deleted option to the page*/ - $('#sqlqueryform').html(''); - var url = result_path + " #result_query, #sqlqueryform"; - $('#browse-results').load(url, function () { - /** Refresh the search results after the deletion */ - document.getElementById('buttonGo').click(); - $('#togglequerybox').html(PMA_messages['strHideQueryBox']); - /** Show the results of the deletion option */ - $('#browse-results').show(); - $('#sqlqueryform').show(); - $('#togglequerybox').show(); - $('html, body') - .animate({ - scrollTop: $("#browse-results").offset().top - }, 1000); - PMA_ajaxRemoveMessage($msg); - }); - } else { - event.preventDefault(); - } + var $msg = PMA_ajaxShowMessage(PMA_messages['strDeleting'], false); + /** Load the deleted option to the page*/ + $('#sqlqueryform').html(''); + var url = result_path + " #result_query, #sqlqueryform"; + $('#browse-results').load(url, function () { + /** Refresh the search results after the deletion */ + document.getElementById('buttonGo').click(); + $('#togglequerybox').html(PMA_messages['strHideQueryBox']); + /** Show the results of the deletion option */ + $('#browse-results').show(); + $('#sqlqueryform').show(); + $('#togglequerybox').show(); + $('html, body') + .animate({ + scrollTop: $("#browse-results").offset().top + }, 1000); + PMA_ajaxRemoveMessage($msg); + }); } }); } @@ -191,9 +181,6 @@ AJAX.registerOnload('db_search.js', function() { }); /** * Ajax Event handler for retrieving the result of an SQL Query - * (see $GLOBALS['cfg']['AjaxEnable']) - * - * @see $GLOBALS['cfg']['AjaxEnable'] */ $("#db_search_form.ajax").live('submit', function(event) { event.preventDefault(); diff --git a/js/db_structure.js b/js/db_structure.js index 7d2d18e076..34f326fe1b 100644 --- a/js/db_structure.js +++ b/js/db_structure.js @@ -179,8 +179,6 @@ AJAX.registerOnload('db_structure.js', function() { /** * Ajax Event handler for 'Truncate Table' - * - * @see $cfg['AjaxEnable'] */ $("a.truncate_table_anchor.ajax").live('click', function(event) { event.preventDefault(); @@ -231,8 +229,6 @@ AJAX.registerOnload('db_structure.js', function() { /** * Ajax Event handler for 'Drop Table' or 'Drop View' - * - * @see $cfg['AjaxEnable'] */ $("a.drop_table_anchor.ajax").live('click', function(event) { event.preventDefault(); @@ -286,8 +282,6 @@ AJAX.registerOnload('db_structure.js', function() { /** * Ajax Event handler for 'Drop tracking' - * - * @see $cfg['AjaxEnable'] */ $('a.drop_tracking_anchor.ajax').live('click', function(event) { event.preventDefault(); diff --git a/js/functions.js b/js/functions.js index 77c88f8ae4..86a8ee01d7 100644 --- a/js/functions.js +++ b/js/functions.js @@ -2222,8 +2222,6 @@ AJAX.registerTeardown('functions.js', function() { /** * Attach Ajax event handlers for Drop Database. Moved here from db_structure.js * as it was also required on db_create.php - * - * @see $cfg['AjaxEnable'] */ AJAX.registerOnload('functions.js', function() { $("#drop_db_anchor.ajax").live('click', function(event) { @@ -2307,7 +2305,6 @@ AJAX.registerOnload('functions.js', function() { /** * Attach Ajax event handler on the change password anchor - * @see $cfg['AjaxEnable'] */ $('#change_password_anchor.ajax').live('click', function(event) { event.preventDefault(); @@ -3291,8 +3288,6 @@ AJAX.registerTeardown('functions.js', function() { }); /** * Attach Ajax event handlers for Drop Table. - * - * @see $cfg['AjaxEnable'] */ AJAX.registerOnload('functions.js', function() { $("#drop_tbl_anchor.ajax").live('click', function(event) { diff --git a/js/makegrid.js b/js/makegrid.js index c9b4aee98d..1195457a14 100644 --- a/js/makegrid.js +++ b/js/makegrid.js @@ -367,7 +367,7 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi * Send column preferences (column order and visibility) to the server. */ sendColPrefs: function() { - if ($(g.t).is('.ajax')) { // only send preferences if AjaxEnable is true + if ($(g.t).is('.ajax')) { // only send preferences if ajax class var post_params = { ajax_request: true, db: g.db, @@ -1801,7 +1801,7 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi g.initColVisib(); } if (enableGridEdit && - $(t).is('.ajax')) // make sure AjaxEnable is enabled in Settings + $(t).is('.ajax')) // make sure we have the ajax class { g.initGridEdit(); } diff --git a/js/server_databases.js b/js/server_databases.js index 960004ee4f..8408a8607b 100644 --- a/js/server_databases.js +++ b/js/server_databases.js @@ -87,8 +87,6 @@ AJAX.registerOnload('server_databases.js', function() { /** * Attach Ajax event handlers for 'Create Database'. - * - * @see $cfg['AjaxEnable'] */ $('#create_database_form.ajax').live('submit', function(event) { event.preventDefault(); diff --git a/js/server_privileges.js b/js/server_privileges.js index 9478d98dac..38b1a6a0fb 100644 --- a/js/server_privileges.js +++ b/js/server_privileges.js @@ -118,7 +118,6 @@ AJAX.registerOnload('server_privileges.js', function() { * * @see PMA_ajaxShowMessage() * @see appendNewUser() - * @see $cfg['AjaxEnable'] * @memberOf jQuery * @name add_user_click * @@ -246,7 +245,6 @@ AJAX.registerOnload('server_privileges.js', function() { * Ajax event handler for 'Reload Privileges' anchor * * @see PMA_ajaxShowMessage() - * @see $cfg['AjaxEnable'] * @memberOf jQuery * @name reload_privileges_click */ @@ -269,7 +267,6 @@ AJAX.registerOnload('server_privileges.js', function() { * AJAX handler for 'Revoke User' * * @see PMA_ajaxShowMessage() - * @see $cfg['AjaxEnable'] * @memberOf jQuery * @name revoke_user_click */ @@ -326,7 +323,6 @@ AJAX.registerOnload('server_privileges.js', function() { * Step 1: Load Edit User Dialog * @memberOf jQuery * @name edit_user_click - * @see $cfg['AjaxEnable'] */ $("a.edit_user_anchor.ajax").live('click', function(event) { /** @lends jQuery */ @@ -376,7 +372,6 @@ AJAX.registerOnload('server_privileges.js', function() { * Step 2: Submit the Edit User Dialog * * @see PMA_ajaxShowMessage() - * @see $cfg['AjaxEnable'] * @memberOf jQuery * @name edit_user_submit */ @@ -461,7 +456,6 @@ AJAX.registerOnload('server_privileges.js', function() { * AJAX handler for 'Export Privileges' * * @see PMA_ajaxShowMessage() - * @see $cfg['AjaxEnable'] * @memberOf jQuery * @name export_user_click */ @@ -570,7 +564,6 @@ AJAX.registerOnload('server_privileges.js', function() { * AJAX handler to Paginate the Users Table * * @see PMA_ajaxShowMessage() - * @see $cfg['AjaxEnable'] * @name paginate_users_table_click * @memberOf jQuery */ diff --git a/js/sql.js b/js/sql.js index 6540a70251..f42ee5659b 100644 --- a/js/sql.js +++ b/js/sql.js @@ -222,7 +222,6 @@ AJAX.registerOnload('sql.js', function() { * Ajax Event handler for 'SQL Query Submit' * * @see PMA_ajaxShowMessage() - * @see $cfg['AjaxEnable'] * @memberOf jQuery * @name sqlqueryform_submit */ @@ -312,7 +311,6 @@ AJAX.registerOnload('sql.js', function() { * Paginate results with Page Selector dropdown * @memberOf jQuery * @name paginate_dropdown_change - * @see $cfg['AjaxEnable'] */ $("#pageselector").live('change', function(event) { var $form = $(this).parent("form"); @@ -323,7 +321,6 @@ AJAX.registerOnload('sql.js', function() { * Ajax Event handler for the display options * @memberOf jQuery * @name displayOptionsForm_submit - * @see $cfg['AjaxEnable'] */ $("#displayOptionsForm.ajax").live('submit', function(event) { event.preventDefault(); diff --git a/js/tbl_select.js b/js/tbl_select.js index 4ae1ace57f..620155a7b9 100644 --- a/js/tbl_select.js +++ b/js/tbl_select.js @@ -49,8 +49,6 @@ AJAX.registerOnload('tbl_select.js', function() { /** * Ajax event handler for Table Search - * - * (see $GLOBALS['cfg']['AjaxEnable']) */ $("#tbl_search_form.ajax").live('submit', function(event) { var unaryFunctions = [ diff --git a/js/tbl_structure.js b/js/tbl_structure.js index 94120c61e5..434ed41b0a 100644 --- a/js/tbl_structure.js +++ b/js/tbl_structure.js @@ -35,8 +35,6 @@ AJAX.registerTeardown('tbl_structure.js', function() { AJAX.registerOnload('tbl_structure.js', function() { /** * Attach Event Handler for 'Change Column' - * - * (see $GLOBALS['cfg']['AjaxEnable']) */ $("a.change_column_anchor.ajax").live('click', function(event) { event.preventDefault(); @@ -55,8 +53,6 @@ AJAX.registerOnload('tbl_structure.js', function() { /** * Attach Event Handler for 'Change multiple columns' - * - * (see $GLOBALS['cfg']['AjaxEnable']) */ $("button.change_columns_anchor.ajax, input.change_columns_anchor.ajax").live('click', function(event) { event.preventDefault(); @@ -77,8 +73,6 @@ AJAX.registerOnload('tbl_structure.js', function() { /** * Attach Event Handler for 'Drop Column' - * - * (see $GLOBALS['cfg']['AjaxEnable']) */ $("a.drop_column_anchor.ajax").live('click', function(event) { event.preventDefault(); @@ -135,8 +129,6 @@ AJAX.registerOnload('tbl_structure.js', function() { /** * Ajax Event handler for 'Add Primary Key' - * - * (see $GLOBALS['cfg']['AjaxEnable']) */ $("a.add_primary_key_anchor.ajax").live('click', function(event) { event.preventDefault(); @@ -180,8 +172,6 @@ AJAX.registerOnload('tbl_structure.js', function() { /** * Ajax Event handler for 'Drop Primary Key/Index' - * - * (see $GLOBALS['cfg']['AjaxEnable']) */ $('a.drop_primary_key_index_anchor.ajax').live('click', function(event) { event.preventDefault(); diff --git a/libraries/DbSearch.class.php b/libraries/DbSearch.class.php index 002628e887..cd008ba0a9 100644 --- a/libraries/DbSearch.class.php +++ b/libraries/DbSearch.class.php @@ -340,8 +340,8 @@ class PMA_DbSearch $html_output .= '' + . PMA_generate_common_url($GLOBALS['db'], $each_table) . '\'' + . ');return false;" >' . __('Browse') . ''; $this_url_params['sql_query'] = $newsearchsqls['delete']; $delete_result_path = 'sql.php' . PMA_generate_common_url($this_url_params); @@ -352,7 +352,7 @@ class PMA_DbSearch __('Delete the matches for the %s table?'), htmlspecialchars($each_table) ) - . '\',\'' . ($GLOBALS['cfg']['AjaxEnable']) . '\');return false;">' + . '\');return false;">' . __('Delete') . ''; } else { $html_output .= ' ' @@ -373,7 +373,7 @@ class PMA_DbSearch { $html_output = ''; $html_output .= '
'; $html_output .= PMA_generate_common_hidden_inputs($GLOBALS['db']); $html_output .= '
'; diff --git a/libraries/DisplayResults.class.php b/libraries/DisplayResults.class.php index a2a68d86a5..b29f9189e1 100644 --- a/libraries/DisplayResults.class.php +++ b/libraries/DisplayResults.class.php @@ -560,7 +560,7 @@ class PMA_DisplayResults . '" />' . $input_for_real_end . '' . '' . ''; @@ -899,7 +899,7 @@ class PMA_DisplayResults . '' . '' . __('Start row') . ': ' . "\n" . '__get('db'), $this->__get('table'), 1 ) - . '' . "\n"; + . ''; } $form_html .= '' . "\n"; + $form_html .= ' ajax'; + $form_html .= '">'; return $form_html; @@ -5345,7 +5339,7 @@ class PMA_DisplayResults if (!PMA_DRIZZLE && !isset($analyzed_sql[0]['queryflags']['procedure'])) { - $ajax_class = $GLOBALS['cfg']['AjaxEnable'] ? ' ajax' : ''; + $ajax_class = ' ajax'; $results_operations_html .= '' . PMA_Util::linkOrButton( diff --git a/libraries/Index.class.php b/libraries/Index.class.php index 96cf3fa893..2a65ca887e 100644 --- a/libraries/Index.class.php +++ b/libraries/Index.class.php @@ -581,14 +581,10 @@ class PMA_Index $this_params = $GLOBALS['url_params']; $this_params['index'] = $index->getName(); $r .= '' . "\n"; @@ -621,9 +617,7 @@ class PMA_Index $r .= ''; $r .= ' ' . PMA_Util::getIcon('b_drop.png', __('Drop')) . '' diff --git a/libraries/TableSearch.class.php b/libraries/TableSearch.class.php index 8c504922a5..a29c460950 100644 --- a/libraries/TableSearch.class.php +++ b/libraries/TableSearch.class.php @@ -1069,7 +1069,7 @@ EOT; $html_output .= ''; + . 'class="ajax"' . '>'; $html_output .= PMA_generate_common_hidden_inputs($this->_db, $this->_table); $html_output .= ''; @@ -1154,7 +1154,7 @@ EOT; $titles['Browse'] = PMA_Util::getIcon('b_browse.png', __('Browse foreign values')); $html_output .= ''; + . ' class="ajax"' . '>'; $html_output .= PMA_generate_common_hidden_inputs($this->_db, $this->_table); $html_output .= ''; $html_output .= ''; diff --git a/libraries/Util.class.php b/libraries/Util.class.php index 1da643eab2..1b754a568a 100644 --- a/libraries/Util.class.php +++ b/libraries/Util.class.php @@ -2395,9 +2395,7 @@ class PMA_Util $pageNowPlusRange = ($pageNow + $range); $gotopage = $prompt . ' diff --git a/libraries/display_import.lib.php b/libraries/display_import.lib.php index 9ff4bed33c..0763e8a568 100644 --- a/libraries/display_import.lib.php +++ b/libraries/display_import.lib.php @@ -165,9 +165,7 @@ if ($_SESSION[$SESSION_KEY]["handler"] != "UploadNoplugin") { if ($_SESSION[$SESSION_KEY]["handler"] != "UploadNoplugin") { echo ' target="import_upload_iframe"'; } -if ($GLOBALS['cfg']['AjaxEnable']) { - echo ' class="ajax"'; -} +echo ' class="ajax"'; ?>> '; if (isset($_REQUEST['db_collation'])) { @@ -156,7 +156,7 @@ function PMA_getHtmlForCopyDatabase($db) $html_output = '
'; $html_output .= ''; @@ -227,9 +227,7 @@ function PMA_getHtmlForChangeDatabaseCharset($db, $table) { $html_output = '
' . '' . PMA_generate_common_hidden_inputs($GLOBALS['db'], $GLOBALS['table']) . ''; @@ -1212,9 +1210,8 @@ function PMA_getListofMaintainActionLink($is_myisam_or_aria, function PMA_getMaintainActionlink($action, $params, $url_params, $link, $chapter = 'MySQL_Database_Administration' ) { - $isAjax = ($GLOBALS['cfg']['AjaxEnable'] ? ' ajax' : ''); return '
  • ' - . '' . $action @@ -1274,10 +1271,9 @@ function PMA_getHtmlForDeleteDataOrTable( */ function PMA_getDeleteDataOrTablelink($url_params, $syntax, $link, $id) { - $isAjax = $GLOBALS['cfg']['AjaxEnable'] ? ' class="ajax"' : ''; return '
  • ' + . ' id="' . $id . '" class="ajax">' . $link . '' . PMA_Util::showMySQLDocu( 'SQL-Syntax', $syntax diff --git a/libraries/rte/rte_main.inc.php b/libraries/rte/rte_main.inc.php index bf374b0e91..355240f705 100644 --- a/libraries/rte/rte_main.inc.php +++ b/libraries/rte/rte_main.inc.php @@ -54,15 +54,13 @@ $ajax_class = array( 'drop' => '', 'export' => '' ); -if ($GLOBALS['cfg']['AjaxEnable']) { - $ajax_class = array( - 'add' => 'class="ajax add_anchor"', - 'edit' => 'class="ajax edit_anchor"', - 'exec' => 'class="ajax exec_anchor"', - 'drop' => 'class="ajax drop_anchor"', - 'export' => 'class="ajax export_anchor"' - ); -} +$ajax_class = array( + 'add' => 'class="ajax add_anchor"', + 'edit' => 'class="ajax edit_anchor"', + 'exec' => 'class="ajax exec_anchor"', + 'drop' => 'class="ajax drop_anchor"', + 'export' => 'class="ajax export_anchor"' +); /** * Create labels for the list diff --git a/libraries/server_privileges.lib.php b/libraries/server_privileges.lib.php index 44aa701f55..26fd099c2e 100644 --- a/libraries/server_privileges.lib.php +++ b/libraries/server_privileges.lib.php @@ -1936,7 +1936,7 @@ function PMA_getChangeLoginInformationHtmlForm($username, $hostname) '2' => __('... revoke all active privileges from the old one and delete it afterwards.'), '3' => __('... delete the old one from the user tables and reload the privileges afterwards.')); - $class = $GLOBALS['cfg']['AjaxEnable'] ? ' ajax' : ''; + $class = ' ajax'; $html_output = '' . "\n" . PMA_generate_common_hidden_inputs('', '') @@ -3029,7 +3029,7 @@ function PMA_getHtmlForDisplayUserProperties($dbname_is_wildcard,$url_dbname, //exit; } - $class = $GLOBALS['cfg']['AjaxEnable'] ? ' class="ajax"' : ''; + $class = ' class="ajax"'; $html_output .= '' . "\n"; diff --git a/libraries/sql_query_form.lib.php b/libraries/sql_query_form.lib.php index 225badbc9a..7f5387412c 100644 --- a/libraries/sql_query_form.lib.php +++ b/libraries/sql_query_form.lib.php @@ -93,9 +93,7 @@ function PMA_sqlQueryForm($query = true, $display_tab = false, $delimiter = ';') ' . "\n"; } diff --git a/libraries/structure.lib.php b/libraries/structure.lib.php index ebeb9ed72a..77b8175105 100644 --- a/libraries/structure.lib.php +++ b/libraries/structure.lib.php @@ -56,11 +56,8 @@ function PMA_getHtmlForActionLinks($current_table, $table_is_view, $tbl_url_quer . $truename . ''; if (!$db_is_information_schema) { - $empty_table = ''; $html_output .= '
  • '; $html_output .= '' + '' ) ); } diff --git a/test/classes/PMA_DisplayResults_test.php b/test/classes/PMA_DisplayResults_test.php index 98d5c6b5b7..948add1f9e 100644 --- a/test/classes/PMA_DisplayResults_test.php +++ b/test/classes/PMA_DisplayResults_test.php @@ -354,7 +354,6 @@ class PMA_DisplayResults_Test extends PHPUnit_Framework_TestCase $caption, $title, $pos, $html_sql_query, $output ) { $GLOBALS['cfg']['NavigationBarIconic'] = true; - $GLOBALS['cfg']['AjaxEnable'] = true; $_SESSION[' PMA_token '] = 'token'; $this->assertEquals( @@ -411,7 +410,6 @@ class PMA_DisplayResults_Test extends PHPUnit_Framework_TestCase $pos_next, $pos_prev, $id_for_direction_dropdown, $is_innodb, $output ) { $_SESSION['tmp_user_values']['max_rows'] = '20'; - $GLOBALS['cfg']['AjaxEnable'] = true; $_SESSION['tmp_user_values']['pos'] = true; $GLOBALS['num_rows'] = '20'; $GLOBALS['unlim_num_rows'] = '50'; diff --git a/test/libraries/PMA_operations_test.php b/test/libraries/PMA_operations_test.php index b17ce5bbc5..58d850e372 100644 --- a/test/libraries/PMA_operations_test.php +++ b/test/libraries/PMA_operations_test.php @@ -41,7 +41,6 @@ class PMA_Operations_Test extends PHPUnit_Framework_TestCase $_SESSION[' PMA_token '] = 'token'; $GLOBALS['cfg'] = array( 'MySQLManualType' => 'none', - 'AjaxEnable' => true, 'ServerDefault' => 1, 'PropertiesIconic' => true, ); diff --git a/test/libraries/PMA_transformation_test.php b/test/libraries/PMA_transformation_test.php index e9bbebad23..44bb1c8fde 100644 --- a/test/libraries/PMA_transformation_test.php +++ b/test/libraries/PMA_transformation_test.php @@ -37,7 +37,6 @@ class PMA_Transformation_Test extends PHPUnit_Framework_TestCase $_SESSION[' PMA_token '] = 'token'; $GLOBALS['cfg'] = array( 'MySQLManualType' => 'none', - 'AjaxEnable' => true, 'ServerDefault' => 1, 'PropertiesIconic' => true, );
    ' . ' ' . PMA_Util::getIcon('b_edit.png', __('Edit')) . '' . '
    '; $html_output .= '' - . '' . $titles['Change'] . '' . '' - . '' ); $html_output .= '' - . ''; + . ''; $html_output .= '' . '' diff --git a/libraries/tbl_columns_definition_form.inc.php b/libraries/tbl_columns_definition_form.inc.php index b15205bc18..538e810fc0 100644 --- a/libraries/tbl_columns_definition_form.inc.php +++ b/libraries/tbl_columns_definition_form.inc.php @@ -729,7 +729,7 @@ $html .= '' $html .= '
    '; + . '_form ajax">'; $html .= PMA_generate_common_hidden_inputs($_form_params); unset($_form_params); diff --git a/server_databases.php b/server_databases.php index 080dafb72d..fa25a008e9 100644 --- a/server_databases.php +++ b/server_databases.php @@ -322,7 +322,7 @@ if ($databases_count > 0) { . '' . __('With selected:') . '' . "\n"; echo PMA_Util::getButtonOrImage( '', - 'mult_submit' . ($cfg['AjaxEnable'] ? ' ajax' : ''), + 'mult_submit' . ' ajax', 'drop_selected_dbs', __('Drop'), 'b_deltbl.png' ); diff --git a/server_privileges.php b/server_privileges.php index f130ab466e..5739d0064c 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -51,11 +51,7 @@ foreach (array_keys($_POST) as $post_key) { require 'libraries/server_common.inc.php'; -if ($GLOBALS['cfg']['AjaxEnable']) { - $conditional_class = 'ajax'; -} else { - $conditional_class = ''; -} +$conditional_class = 'ajax'; /** * Messages are built using the message name diff --git a/sql.php b/sql.php index 3f6fe3299a..cf3c71529b 100644 --- a/sql.php +++ b/sql.php @@ -991,7 +991,7 @@ if ((0 == $num_rows && 0 == $unlim_num_rows) || $is_affected) { // At least one row is returned -> displays a table with results //If we are retrieving the full value of a truncated field or the original // value of a transformed field, show it here and exit - if ($GLOBALS['grid_edit'] == true && $GLOBALS['cfg']['AjaxEnable']) { + if ($GLOBALS['grid_edit'] == true) { $row = PMA_DBI_fetch_row($result); $response = PMA_Response::getInstance(); $response->addJSON('value', $row[0]); @@ -1107,7 +1107,7 @@ if ((0 == $num_rows && 0 == $unlim_num_rows) || $is_affected) { unset($message); - if (! $GLOBALS['is_ajax_request'] || ! $GLOBALS['cfg']['AjaxEnable']) { + if (! $GLOBALS['is_ajax_request']) { if (strlen($table)) { include 'libraries/tbl_common.inc.php'; $url_query .= '&goto=tbl_sql.php&back=tbl_sql.php'; @@ -1137,9 +1137,7 @@ if ((0 == $num_rows && 0 == $unlim_num_rows) || $is_affected) { //begin the sqlqueryresults div here. container div echo '
    '; // Display previous update query (from tbl_replace) diff --git a/tbl_indexes.php b/tbl_indexes.php index c110e71863..6cac0f6207 100644 --- a/tbl_indexes.php +++ b/tbl_indexes.php @@ -161,10 +161,7 @@ if (isset($_REQUEST['index']) && is_array($_REQUEST['index'])) { // end preparing form values ?> - + addHTML('
    '); $response->addHTML(PMA_getHtmlForAddColumn($columns_list)); $response->addHTML( - '
    ' + '
    ' ); } diff --git a/test/classes/PMA_DbSearch_test.php b/test/classes/PMA_DbSearch_test.php index eeeceeb04e..bfe7647e9a 100644 --- a/test/classes/PMA_DbSearch_test.php +++ b/test/classes/PMA_DbSearch_test.php @@ -127,7 +127,6 @@ class PMA_DbSearch_test extends PHPUnit_Framework_TestCase $each_table, $newsearchsqls, $odd_row, $output ) { - $GLOBALS['cfg']['AjaxEnable'] = true; $this->assertEquals( $output, $this->_callProtectedFunction( @@ -155,7 +154,7 @@ class PMA_DbSearch_test extends PHPUnit_Framework_TestCase 'delete' => 'column2' ), true, - '
    2 matches in table1BrowseDelete
    2 matches in table1BrowseDelete