From 505884174bfcf223d111b0f24975dbb658846960 Mon Sep 17 00:00:00 2001 From: ninadsp Date: Sun, 11 Jul 2010 03:14:02 +0530 Subject: Removed inline call to confirmLink() for 'Delete Tracking action'. --- db_tracking.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'db_tracking.php') diff --git a/db_tracking.php b/db_tracking.php index 68faafec3f..806da83be3 100755 --- a/db_tracking.php +++ b/db_tracking.php @@ -11,7 +11,12 @@ require_once './libraries/common.inc.php'; require_once './libraries/Table.class.php'; -require './libraries/db_common.inc.php'; +//Get some js files needed for Ajax +$GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.custom.js'; + +if($GLOBALS['is_ajax_request'] != true) { + require './libraries/db_common.inc.php'; +} $url_query .= '&goto=tbl_tracking.php&back=db_tracking.php'; // Get the database structure @@ -25,6 +30,11 @@ require_once './libraries/relation.lib.php'; // (here, do not use $_REQUEST['db] as it can be crafted) if (isset($_REQUEST['delete_tracking']) && isset($_REQUEST['table'])) { PMA_Tracker::deleteTracking($GLOBALS['db'], $_REQUEST['table']); + + if($GLOBALS['is_ajax_request'] == true) { + $message = PMA_Message::success(); + PMA_ajaxResponse($message, true); + } } // Get tracked data about the database @@ -117,7 +127,7 @@ if (PMA_DBI_num_rows($all_tables_result) > 0) { - + | | -- cgit v1.2.3