diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-11-15 09:26:25 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-11-15 09:26:25 +0800 |
commit | f0c5b31f7ae844922a056dcea40562144046496d (patch) | |
tree | ac2231f3a4ead04c92945c513b6b30c9789df0da /fg21sim/webui | |
parent | 3d3b662ce0eb40ed91c0d1a6466dbcd9e42d2abf (diff) | |
download | fg21sim-f0c5b31f7ae844922a056dcea40562144046496d.tar.bz2 |
webui: Fix the wrong value "galactic/freefree" to "galactic/snr"
configs.js: Update "workdir" and "configfile" to be sync with server.
Diffstat (limited to 'fg21sim/webui')
-rw-r--r-- | fg21sim/webui/static/js/configs.js | 3 | ||||
-rw-r--r-- | 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 @@ <label for="conf-common-components-gsync">galactic/freefree</label> </div> <div class="form-group"> - <input class="form-control" type="checkbox" id="conf-common-components-gsnr" name="common/components" value="galactic/freefree" /> + <input class="form-control" type="checkbox" id="conf-common-components-gsnr" name="common/components" value="galactic/snr" /> <label for="conf-common-components-gsync">galactic/snr</label> </div> <div class="form-group"> |