From 4f5ba498aeb029582ee7aba5ae8eda6a88ac6316 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Fri, 23 Dec 2016 13:52:05 +0000 Subject: [PATCH] dbq --- lib/php/db.php | 2 +- www/dbq/html/default.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }; } -- 2.47.3