diff --git a/js/functions.js b/js/functions.js index 5b3273c2d..f4a939b87 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1830,6 +1830,7 @@ $(document).ready(function() { /** * Attach Ajax event handlers for Drop Trigger. Used on tbl_structure.php + * @see $cfg['AjaxEnable'] */ $(document).ready(function() { diff --git a/libraries/tbl_triggers.lib.php b/libraries/tbl_triggers.lib.php index 43ba18e15..15f07b2af 100644 --- a/libraries/tbl_triggers.lib.php +++ b/libraries/tbl_triggers.lib.php @@ -28,6 +28,12 @@ if ($triggers) { __('Event')); $ct=0; $delimiter = '//'; + if ($GLOBALS['cfg']['AjaxEnable']) { + $conditional_class = 'class="drop_trigger_anchor"'; + } else { + $conditional_class = ''; + } + foreach ($triggers as $trigger) { $drop_and_create = $trigger['drop'] . $delimiter . "\n" . $trigger['create'] . "\n"; @@ -41,7 +47,7 @@ if ($triggers) { ($ct%2 == 0) ? 'even' : 'odd', $trigger['name'], PMA_linkOrButton('tbl_sql.php?' . $url_query . '&sql_query=' . urlencode($drop_and_create) . '&show_query=1&delimiter=' . urlencode($delimiter), $titles['Change']), - '' . $titles['Drop'] . '', + '' . $titles['Drop'] . '', $trigger['action_timing'], $trigger['event_manipulation']); $ct++;