mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-02-04 09:14:30 +00:00
Make default colour schemes for the web UI configurable on the server side #102
This commit is contained in:
@@ -291,6 +291,10 @@ function loadOptions() {
|
||||
text: sc
|
||||
})));
|
||||
$("#alerts-to-fetch").val(options["web-ui-options"]["alert-count-default"]);
|
||||
if ($("#color-scheme option:selected").val() == "") {
|
||||
$("#color-scheme").val(options["web-ui-options"]["default-color-scheme"]);
|
||||
setColorScheme(options["web-ui-options"]["default-color-scheme"]);
|
||||
}
|
||||
|
||||
// Load URL params. These may select things from the various filter & display options, so the function needs
|
||||
// to be called after these are set up, but if the URL params ask for "embedded mode", this will suppress
|
||||
|
||||
Reference in New Issue
Block a user