From 414a09a2e030439db713b78c9032bd2d2f0d7924 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 1 Feb 2011 07:32:54 -0500 Subject: [PATCH] Code refers to older functionality --- js/functions.js | 77 --------------------------------------------------------- 1 file changed, 77 deletions(-) diff --git a/js/functions.js b/js/functions.js index 42325caa0..5b3273c2d 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1829,83 +1829,6 @@ $(document).ready(function() { }, 'top.frame_content'); //end $(document).ready for 'Create Table' /** - * Attach event handlers for Empty Table and Drop Table. Used wherever libraries/ - * tbl_links.inc.php is used. - */ -$(document).ready(function() { - - /** - * Attach Ajax event handlers for Empty Table - * - * @uses PMA_ajaxShowMessage() - * @uses $.PMA_confirm() - */ - $("#empty_table_anchor").live('click', function(event) { - event.preventDefault(); - - /** - * @var question String containing the question to be asked for confirmation - */ - var question = 'TRUNCATE TABLE ' + window.parent.table; - - $(this).PMA_confirm(question, $(this).attr('href'), function(url) { - - PMA_ajaxShowMessage(PMA_messages['strProcessingRequest']); - $.get(url, {'is_js_confirmed': 1, 'ajax_request': true}, function(data) { - if(data.success == true) { - PMA_ajaxShowMessage(data.message); - $("#topmenucontainer") - .next('div') - .remove() - .end() - .after(data.sql_query); - } - else { - PMA_ajaxShowMessage(data.error); - } - }) // end $.get - }) // end $.PMA_confirm() - }) // end Empty Table - - /** - * Attach Ajax event handler for Drop Table - * - * @uses PMA_ajaxShowMessage() - * @uses $.PMA_confirm() - * @uses window.parent.refreshNavigation() - */ - $("#drop_table_anchor").live('click', function(event) { - event.preventDefault(); - - /** - * @var question String containing the question to be asked for confirmation - */ - var question = 'DROP TABLE/VIEW ' + window.parent.table; - $(this).PMA_confirm(question, $(this).attr('href'), function(url) { - - PMA_ajaxShowMessage(PMA_messages['strProcessingRequest']); - $.get(url, {'is_js_confirmed': 1, 'ajax_request': true}, function(data) { - if(data.success == true) { - PMA_ajaxShowMessage(data.message); - $("#topmenucontainer") - .next('div') - .remove() - .end() - .after(data.sql_query); - window.parent.table = ''; - if (window.parent && window.parent.frame_navigation) { - window.parent.frame_navigation.location.reload(); - } - } - else { - PMA_ajaxShowMessage(data.error); - } - }) // end $.get - }) // end $.PMA_confirm() - }) // end $().live() -}, 'top.frame_content'); //end $(document).ready() for libraries/tbl_links.inc.php - -/** * Attach Ajax event handlers for Drop Trigger. Used on tbl_structure.php */ $(document).ready(function() { -- 2.11.4.GIT