From f1e72d766498a64a5cc52962978585f4c3316c93 Mon Sep 17 00:00:00 2001 From: ninadsp Date: Thu, 26 Aug 2010 20:20:51 +0530 Subject: [PATCH] Removed the inline call to confirmLink() and instead attached the jQuery call to it. jQuery call attached to the proper class --- js/tbl_structure.js | 5 ++--- tbl_structure.php | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/js/tbl_structure.js b/js/tbl_structure.js index 7f07855a7..693442e7b 100644 --- a/js/tbl_structure.js +++ b/js/tbl_structure.js @@ -17,7 +17,7 @@ * */ $(document).ready(function() { - //Drop Column + /** * Attach Event Handler for 'Drop Column' * @@ -60,14 +60,13 @@ $(document).ready(function() { }); // end $.PMA_confirm() }) ; //end of Drop Column Anchor action - //Add Primary Key /** * Ajax Event handler for 'Add Primary Key' * * @uses $.PMA_confirm() * @uses PMA_ajaxShowMessage() */ - $(".add_primary_key_anchor").live('click', function(event) { + $(".action_primary a").live('click', function(event) { event.preventDefault(); /** diff --git a/tbl_structure.php b/tbl_structure.php index 46ba95ad1..c8e59d83d 100755 --- a/tbl_structure.php +++ b/tbl_structure.php @@ -479,8 +479,7 @@ while ($row = PMA_DBI_fetch_assoc($fields_rs)) { - +