mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-19 07:08:09 +01:00
Merge PR #1176 branch 'marc1706/ticket/11302' into develop
# By Marc Alexander # Via Marc Alexander * marc1706/ticket/11302: [ticket/11302] Correctly select first timezone or selected timezone
This commit is contained in:
commit
56a7dd2bd5
@ -438,7 +438,10 @@ phpbb.timezone_switch_date = function(keep_selection) {
|
||||
}
|
||||
|
||||
if (typeof keep_selection !== 'undefined' && !keep_selection) {
|
||||
$('#timezone > option:first').attr('selected', true);
|
||||
var timezoneOptions = $('#timezone > optgroup option');
|
||||
if (timezoneOptions.filter(':selected').length <= 0) {
|
||||
timezoneOptions.filter(':first').attr('selected', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -104,7 +104,4 @@
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/timezone.js"></script>
|
||||
<script type="text/javascript">phpbb_preselect_tz_select();</script>
|
||||
|
||||
<!-- INCLUDE overall_footer.html -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user