Skip to content

Commit

Permalink
Update sql.js to fix a invalid error msg (#621)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rocky1001 authored and mistercrunch committed Jun 15, 2016
1 parent 5de8740 commit 77c5c94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions caravel/assets/javascripts/sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ $(document).ready(function () {
$('#results').html(data);

$('table.sql_results').DataTable({
retrieve: true,
paging: false,
searching: true,
aaSorting: []
Expand Down

0 comments on commit 77c5c94

Please sign in to comment.