From: Nicolas Boisselier Date: Fri, 23 Dec 2016 13:52:05 +0000 (+0000) Subject: dbq X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=4f5ba498aeb029582ee7aba5ae8eda6a88ac6316;p=nb.git dbq --- diff --git a/lib/php/db.php b/lib/php/db.php index 2f12ed4c..1d728740 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -120,7 +120,7 @@ class Db extends nb { public $sort; public $extras; public $format = 'json'; - public $formats = [ 'table','div','csv','xml','json','yaml','sh','sql' ]; + public $formats = [ 'table','div','csv','xml','json','yaml','sh','sql','php' ]; public $limits = ['20','50','100','500','1000']; public $limit; diff --git a/www/dbq/html/default.js b/www/dbq/html/default.js index 7b46542a..4125e1aa 100644 --- a/www/dbq/html/default.js +++ b/www/dbq/html/default.js @@ -49,14 +49,14 @@ document.addEventListener("DOMContentLoaded", function() { var format = document.getElementById("format").value; if (format == window._dbq["HTML_FORMAT"]) format = "html"; window.location = "./" + document.getElementById("table").value + "." + format; - return false; + return true; }; } for (var e of document.querySelectorAll(".menu select.limit")) { e.onchange = function() { this.form.submit(); - return false; + return true; }; }