mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04: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:
parent
5de8740a38
commit
77c5c9400a
@ -89,6 +89,7 @@ $(document).ready(function () {
|
|||||||
$('#results').html(data);
|
$('#results').html(data);
|
||||||
|
|
||||||
$('table.sql_results').DataTable({
|
$('table.sql_results').DataTable({
|
||||||
|
retrieve: true,
|
||||||
paging: false,
|
paging: false,
|
||||||
searching: true,
|
searching: true,
|
||||||
aaSorting: []
|
aaSorting: []
|
||||||
|
Loading…
Reference in New Issue
Block a user