summaryrefslogtreecommitdiff
path: root/program/steps/settings
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-10-23 13:13:10 +0000
committeralecpl <alec@alec.pl>2011-10-23 13:13:10 +0000
commit03246217977e055c32e2af0b0795a6e4db36e657 (patch)
tree36793697580ac4b00f7865e576ffdb60456bac77 /program/steps/settings
parent104e23530255676a80919b772233bc5dbbd9a3bd (diff)
- Fix JS error when dst_active checkbox doesn't exist (#1488133)
Diffstat (limited to 'program/steps/settings')
-rw-r--r--program/steps/settings/func.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc
index cb8b91881..bb144d4cb 100644
--- a/program/steps/settings/func.inc
+++ b/program/steps/settings/func.inc
@@ -178,7 +178,7 @@ function rcmail_user_prefs($current=null)
// show page size selection
if (!isset($no_override['timezone'])) {
$field_id = 'rcmfd_timezone';
- $select_timezone = new html_select(array('name' => '_timezone', 'id' => $field_id, 'onchange' => "document.getElementById('rcmfd_dst').disabled=this.selectedIndex==0"));
+ $select_timezone = new html_select(array('name' => '_timezone', 'id' => $field_id, 'onchange' => "$('#rcmfd_dst').attr('disabled', this.selectedIndex==0)"));
$select_timezone->add(rcube_label('autodetect'), 'auto');
$select_timezone->add('(GMT -11:00) Midway Island, Samoa', '-11');
$select_timezone->add('(GMT -10:00) Hawaii', '-10');