From 067c49f5505f14f7e31b99e52170c4ca0d8f0ca3 Mon Sep 17 00:00:00 2001 From: cers Date: Mon, 20 Aug 2018 15:54:33 +0800 Subject: [PATCH] Update wwwsqldesigner.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改getOption选项获取,以匹配config.js配置文件,使得这些选项可用 --- js/wwwsqldesigner.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/wwwsqldesigner.js b/js/wwwsqldesigner.js index 2a83420..2bd7708 100644 --- a/js/wwwsqldesigner.js +++ b/js/wwwsqldesigner.js @@ -181,12 +181,12 @@ SQL.Designer.prototype.getOption = function(name) { case "db": return CONFIG.DEFAULT_DB; case "staticpath": return CONFIG.STATIC_PATH || ""; case "xhrpath": return CONFIG.XHR_PATH || ""; - case "snap": return 0; - case "showsize": return 0; - case "showtype": return 0; - case "pattern": return "%R_%T"; - case "hide": return false; - case "vector": return true; + case "snap": return CONFIG.SNAP; + case "showsize": return CONFIG.SHOWSIZE; + case "showtype": return CONFIG.SHOWTYPE; + case "pattern": return CONFIG.PATTERN; + case "hide": return CONFIG.HIDE; + case "vector": return CONFIG.VECTOR; default: return null; } }