Users are able to change their timezone from the backend settings page.
This commit is contained in:
parent
c67ec03fc1
commit
8798813606
3 changed files with 7 additions and 0 deletions
|
@ -459,6 +459,11 @@
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="timezone"><?= lang('timezone') ?></label>
|
||||||
|
<?= render_timezone_dropdown('id="timezone" class="form-control"') ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
<button type="button" id="user-notifications" class="btn btn-default" data-toggle="button">
|
<button type="button" id="user-notifications" class="btn btn-default" data-toggle="button">
|
||||||
<span class="glyphicon glyphicon-envelope"></span>
|
<span class="glyphicon glyphicon-envelope"></span>
|
||||||
<?= lang('receive_notifications') ?>
|
<?= lang('receive_notifications') ?>
|
||||||
|
|
|
@ -116,6 +116,7 @@ window.BackendSettings = window.BackendSettings || {};
|
||||||
$('#state').val(GlobalVariables.settings.user.state);
|
$('#state').val(GlobalVariables.settings.user.state);
|
||||||
$('#zip-code').val(GlobalVariables.settings.user.zip_code);
|
$('#zip-code').val(GlobalVariables.settings.user.zip_code);
|
||||||
$('#notes').val(GlobalVariables.settings.user.notes);
|
$('#notes').val(GlobalVariables.settings.user.notes);
|
||||||
|
$('#timezone').val(GlobalVariables.settings.user.timezone);
|
||||||
|
|
||||||
$('#username').val(GlobalVariables.settings.user.settings.username);
|
$('#username').val(GlobalVariables.settings.user.settings.username);
|
||||||
$('#password, #retype-password').val('');
|
$('#password, #retype-password').val('');
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
state: $('#state').val(),
|
state: $('#state').val(),
|
||||||
zip_code: $('#zip-code').val(),
|
zip_code: $('#zip-code').val(),
|
||||||
notes: $('#notes').val(),
|
notes: $('#notes').val(),
|
||||||
|
timezone: $('#timezone').val(),
|
||||||
settings: {
|
settings: {
|
||||||
username: $('#username').val(),
|
username: $('#username').val(),
|
||||||
notifications: $('#user-notifications').hasClass('active'),
|
notifications: $('#user-notifications').hasClass('active'),
|
||||||
|
|
Loading…
Reference in a new issue