summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-12-28 09:26:19 +0000
committeralecpl <alec@alec.pl>2011-12-28 09:26:19 +0000
commite2dfb5ebadbbe4c404e4815d5d32527aa1e89d9b (patch)
tree883dbf65afe83a19e95e4083c33854b9c2b5e392 /program/steps
parenta267c6ccd20ea835a398211063b550ef49591b82 (diff)
- Fix handling of INBOX's subfolders in special folders config (#1488279)
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/settings/func.inc11
1 files changed, 9 insertions, 2 deletions
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc
index ac55acb3a..f4517ccaa 100644
--- a/program/steps/settings/func.inc
+++ b/program/steps/settings/func.inc
@@ -704,8 +704,15 @@ function rcmail_user_prefs($current=null)
// load folders list only when needed
if ($current) {
- $select = rcmail_mailbox_select(array('noselection' => '---', 'realnames' => true,
- 'maxlength' => 30, 'exceptions' => array('INBOX'), 'folder_filter' => 'mail', 'folder_rights' => 'w'));
+ $select = rcmail_mailbox_select(array(
+ 'noselection' => '---',
+ 'realnames' => true,
+ 'maxlength' => 30,
+ 'folder_filter' => 'mail',
+ 'folder_rights' => 'w',
+ // #1486114, #1488279
+ 'onchange' => "if ($(this).val() == 'INBOX') $(this).val('')",
+ ));
}
else // dummy select
$select = new html_select();