From fbbc4c4be35429ba1c05ba9a9de4b8855abff82f Mon Sep 17 00:00:00 2001 From: Rocky Qi Date: Wed, 15 Jun 2016 16:12:42 +0800 Subject: [PATCH] Update sql.js to fix a invalid error msg 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 --- caravel/assets/javascripts/sql.js | 1 + 1 file changed, 1 insertion(+) diff --git a/caravel/assets/javascripts/sql.js b/caravel/assets/javascripts/sql.js index dcde9a197f661..0d9038e0e5135 100644 --- a/caravel/assets/javascripts/sql.js +++ b/caravel/assets/javascripts/sql.js @@ -89,6 +89,7 @@ $(document).ready(function () { $('#results').html(data); $('table.sql_results').DataTable({ + retrieve: true, paging: false, searching: true, aaSorting: []