diff --git a/js/sql.js b/js/sql.js new file mode 100644 index 000000000..b5c2e4577 --- /dev/null +++ b/js/sql.js @@ -0,0 +1,18 @@ +/* vim: set expandtab sw=4 ts=4 sts=4: */ +/** + * function used wherever an sql query form is used + * + * @version $Id$ + */ + +$("#sqlqueryform").live('submit', function(event) { + event.preventDefault(); + + PMA_ajaxShowMessage(); + + $(this).append(''); + + $.post($(this).attr('action'), $(this).serialize() , function(data) { + $("#sqlqueryresults").html(data); + }) +})