aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver/template/ucp_register.html
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-03-15 07:45:43 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2012-03-14 22:57:31 -0400
commitda8009603d05acdccaff15cd610353d85c365220 (patch)
tree0afff6695015477109bda8a1f298a9d9bcbc6d61 /phpBB/styles/prosilver/template/ucp_register.html
parentbb461c8daa97358e8bcce923a21eba0abd6ea3dc (diff)
downloadforums-da8009603d05acdccaff15cd610353d85c365220.tar
forums-da8009603d05acdccaff15cd610353d85c365220.tar.gz
forums-da8009603d05acdccaff15cd610353d85c365220.tar.bz2
forums-da8009603d05acdccaff15cd610353d85c365220.tar.xz
forums-da8009603d05acdccaff15cd610353d85c365220.zip
[feature/new-tz-handling] Preselect a timezone in registration.
Use Javascript to obtain client's timezone offset and select the first timezone in our list with that offset. Changes for prosilver only. The javascript file should be shared between styles. PHPBB3-9558
Diffstat (limited to 'phpBB/styles/prosilver/template/ucp_register.html')
-rw-r--r--phpBB/styles/prosilver/template/ucp_register.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/phpBB/styles/prosilver/template/ucp_register.html b/phpBB/styles/prosilver/template/ucp_register.html
index dd0e5ad02a..542a860f23 100644
--- a/phpBB/styles/prosilver/template/ucp_register.html
+++ b/phpBB/styles/prosilver/template/ucp_register.html
@@ -59,7 +59,12 @@
</dl>
<dl>
<dt><label for="tz">{L_TIMEZONE}:</label></dt>
- <dd><select name="tz" id="tz" tabindex="7" class="autowidth">{S_TZ_OPTIONS}</select></dd>
+ <dd>
+ <select name="tz" id="tz" tabindex="7" class="autowidth tz_select">
+ <option value="">{L_SELECT_TIMEZONE}</option>
+ {S_TZ_OPTIONS}
+ </select>
+ </dd>
</dl>
<!-- IF .profile_fields -->
@@ -110,4 +115,7 @@
</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 -->