From 77c5c9400a62261a8054e95406b7a86bb6a09749 Mon Sep 17 00:00:00 2001 From: Rocky Qi Date: Thu, 16 Jun 2016 05:27:12 +0800 Subject: [PATCH] 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 --- 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 dcde9a197f..0d9038e0e5 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: []