aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-11-15 09:26:25 +0800
committerAaron LI <aaronly.me@outlook.com>2016-11-15 09:26:25 +0800
commitf0c5b31f7ae844922a056dcea40562144046496d (patch)
treeac2231f3a4ead04c92945c513b6b30c9789df0da /fg21sim
parent3d3b662ce0eb40ed91c0d1a6466dbcd9e42d2abf (diff)
downloadfg21sim-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')
-rw-r--r--fg21sim/webui/static/js/configs.js3
-rw-r--r--fg21sim/webui/templates/configs.html2
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">