diff --git a/js/tbl_select.js b/js/tbl_select.js new file mode 100644 index 000000000..8541a84e0 --- /dev/null +++ b/js/tbl_select.js @@ -0,0 +1,17 @@ +/** + * JavaScript functions used on tbl_select.php + */ +$(document).ready(function() { + + $("#tbl_search_form").live('submit', function(event) { + event.preventDefault(); + + PMA_ajaxShowMessage(PMA_messages['strSearching']); + + $(this).append(''); + + $.post($(this).attr('action'), $(this).serialize(), function(data) { + $("#searchresults").html(data); + }) + }) +}, 'top.frame_content'); \ No newline at end of file diff --git a/tbl_select.php b/tbl_select.php index 99936f36e..19b090deb 100755 --- a/tbl_select.php +++ b/tbl_select.php @@ -18,7 +18,7 @@ require_once './libraries/common.inc.php'; require_once './libraries/relation.lib.php'; // foreign keys require_once './libraries/mysql_charsets.lib.php'; -$GLOBALS['js_include'][] = 'tbl_change.js'; +$GLOBALS['js_include'][] = 'tbl_select.js'; $GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.custom.js'; $GLOBALS['js_include'][] = 'jquery/timepicker.js'; if ($GLOBALS['cfg']['PropertiesIconic'] == true) { @@ -120,7 +120,7 @@ while (list($operator) = each($GLOBALS['cfg']['UnaryOperators'])) { } // ]]> -
+ @@ -325,6 +325,7 @@ $(function() {
+