mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 22:38:52 +00: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
2 changed files with 4 additions and 4 deletions
|
@ -438,7 +438,10 @@ phpbb.timezone_switch_date = function(keep_selection) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof keep_selection !== 'undefined' && !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>
|
</div>
|
||||||
</form>
|
</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 -->
|
<!-- INCLUDE overall_footer.html -->
|
||||||
|
|
Loading…
Add table
Reference in a new issue