forked from mirrors/easyappointments
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>
|
||||
</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">
|
||||
<span class="glyphicon glyphicon-envelope"></span>
|
||||
<?= lang('receive_notifications') ?>
|
||||
|
|
|
@ -116,6 +116,7 @@ window.BackendSettings = window.BackendSettings || {};
|
|||
$('#state').val(GlobalVariables.settings.user.state);
|
||||
$('#zip-code').val(GlobalVariables.settings.user.zip_code);
|
||||
$('#notes').val(GlobalVariables.settings.user.notes);
|
||||
$('#timezone').val(GlobalVariables.settings.user.timezone);
|
||||
|
||||
$('#username').val(GlobalVariables.settings.user.settings.username);
|
||||
$('#password, #retype-password').val('');
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
state: $('#state').val(),
|
||||
zip_code: $('#zip-code').val(),
|
||||
notes: $('#notes').val(),
|
||||
timezone: $('#timezone').val(),
|
||||
settings: {
|
||||
username: $('#username').val(),
|
||||
notifications: $('#user-notifications').hasClass('active'),
|
||||
|
|
Loading…
Reference in a new issue