mirror of https://github.com/JohnHammond/CTFd.git
Fix timezone loading in time config page (#1211)
* Fix an issue where CTF times could not be displayed in the admin panel because timezones weren't availablebulk-clear-sessions
parent
d30bd182d2
commit
d37805b6fe
|
@ -233,6 +233,10 @@ function insertTimezones(target) {
|
|||
}
|
||||
|
||||
$(() => {
|
||||
insertTimezones($("#start-timezone"));
|
||||
insertTimezones($("#end-timezone"));
|
||||
insertTimezones($("#freeze-timezone"));
|
||||
|
||||
$(".config-section > form:not(.form-upload)").submit(updateConfigs);
|
||||
$("#logo-upload").submit(uploadLogo);
|
||||
$("#remove-logo").click(removeLogo);
|
||||
|
@ -291,8 +295,4 @@ $(() => {
|
|||
$("#mail_username_password").toggle(this.checked);
|
||||
})
|
||||
.change();
|
||||
|
||||
insertTimezones($("#start-timezone"));
|
||||
insertTimezones($("#end-timezone"));
|
||||
insertTimezones($("#freeze-timezone"));
|
||||
});
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue