The branch, master has been updated via 414a09a2e030439db713b78c9032bd2d2f0d7924 (commit) from 879864b300ae3118e0e9bb5142c0f3da77807346 (commit)
- Log ----------------------------------------------------------------- commit 414a09a2e030439db713b78c9032bd2d2f0d7924 Author: Marc Delisle marc@infomarc.info Date: Tue Feb 1 07:32:54 2011 -0500
Code refers to older functionality
-----------------------------------------------------------------------
Summary of changes: js/functions.js | 77 ------------------------------------------------------- 1 files changed, 0 insertions(+), 77 deletions(-)
diff --git a/js/functions.js b/js/functions.js index 42325ca..5b3273c 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() {
hooks/post-receive