aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/subsilver2
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-06-18 10:20:15 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-06-18 15:10:04 +0200
commit8d65f1f7d263d9f6e76cbac2765da02a0877c87f (patch)
tree6f8f42d997d193c76ca8bb19c78793a2f0be31a1 /phpBB/styles/subsilver2
parent5441ee1ee489ef9ad1727f110c440dde5417cc1f (diff)
downloadforums-8d65f1f7d263d9f6e76cbac2765da02a0877c87f.tar
forums-8d65f1f7d263d9f6e76cbac2765da02a0877c87f.tar.gz
forums-8d65f1f7d263d9f6e76cbac2765da02a0877c87f.tar.bz2
forums-8d65f1f7d263d9f6e76cbac2765da02a0877c87f.tar.xz
forums-8d65f1f7d263d9f6e76cbac2765da02a0877c87f.zip
[feature/new-tz-handling] Add doc blocks to js functions
PHPBB3-9558
Diffstat (limited to 'phpBB/styles/subsilver2')
-rw-r--r--phpBB/styles/subsilver2/template/timezone.js19
1 files changed, 14 insertions, 5 deletions
diff --git a/phpBB/styles/subsilver2/template/timezone.js b/phpBB/styles/subsilver2/template/timezone.js
index f73a82a063..b91aae6244 100644
--- a/phpBB/styles/subsilver2/template/timezone.js
+++ b/phpBB/styles/subsilver2/template/timezone.js
@@ -1,3 +1,8 @@
+/**
+* Hide the optgroups that are not the selected timezone
+*
+* @param bool keep_selection Shall we keep the value selected, or shall the user be forced to repick one.
+*/
function phpbb_switch_tz_date(keep_selection)
{
$('#timezone > optgroup').css("display", "none");
@@ -19,11 +24,20 @@ function phpbb_switch_tz_date(keep_selection)
}
}
+/**
+* Display the date/time select
+*/
function phpbb_enable_tz_dates()
{
$('#tz_select_date').css("display", "block");
}
+/**
+* Preselect a date/time or suggest one, if it is not picked.
+*
+* @param bool force_selector Shall we select the suggestion?
+* @param string l_suggestion The language string which we use, to display the selection
+*/
function phpbb_preselect_tz_select(force_selector, l_suggestion)
{
@@ -78,11 +92,6 @@ function phpbb_preselect_tz_select(force_selector, l_suggestion)
}
else
{
- // Firefox scrolls the selector only to put the option into view;
- // for negative-offset timezones, this means the first timezone
- // of a particular offset will be the bottom one, and selected,
- // with all other timezones not visible. Not much can be done
- // about that here unfortunately.
option.selected = true;
phpbb_switch_tz_date(!force_selector);
$('#tz_select_date_suggest').css("display", "none");