mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
Update sql.js to fix a invalid error msg (#621)
when using sql.html page to run sql directly, for any SELECT * sql, when click run! button for the second time,
the page will show error msg like: DataTables warning: table id={id} - Cannot reinitialise DataTable.
this can be fix by:https://datatables.net/manual/tech-notes/3#retrieve
This commit is contained in:
committed by
Maxime Beauchemin
parent
5de8740a38
commit
77c5c9400a
@@ -89,6 +89,7 @@ $(document).ready(function () {
|
||||
$('#results').html(data);
|
||||
|
||||
$('table.sql_results').DataTable({
|
||||
retrieve: true,
|
||||
paging: false,
|
||||
searching: true,
|
||||
aaSorting: []
|
||||
|
||||
Reference in New Issue
Block a user