From f0c5b31f7ae844922a056dcea40562144046496d Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 15 Nov 2016 09:26:25 +0800 Subject: webui: Fix the wrong value "galactic/freefree" to "galactic/snr" configs.js: Update "workdir" and "configfile" to be sync with server. --- fg21sim/webui/static/js/configs.js | 3 ++- fg21sim/webui/templates/configs.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fg21sim/webui/static/js/configs.js b/fg21sim/webui/static/js/configs.js index 6ded8c4..d071be1 100644 --- a/fg21sim/webui/static/js/configs.js +++ b/fg21sim/webui/static/js/configs.js @@ -199,7 +199,8 @@ var setFormConfigSingle = function (name, value) { $("input[name=workdir]").val(workdir); $("input[name=configfile]").val(configfile); } else { - console.warn("Value of 'userconfig' is invalid"); + $("input[name=workdir]").val(""); + $("input[name=configfile]").val(""); } } else { var selector = "input[name='" + name + "']"; diff --git a/fg21sim/webui/templates/configs.html b/fg21sim/webui/templates/configs.html index 2d728f6..be2c0d2 100644 --- a/fg21sim/webui/templates/configs.html +++ b/fg21sim/webui/templates/configs.html @@ -74,7 +74,7 @@
- +
-- cgit v1.2.2