diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-06-15 11:46:50 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-06-15 11:46:50 +0000 |
| commit | 2b9292a4548d9d8368a9fc7673beb71ddc91c8ed (patch) | |
| tree | fc8e728e1692610ed67e7b26af8cb5806863e506 /roundcubemail/program/steps | |
| parent | 0b8e5ea19d83fbab56687028ec7cde02109408c2 (diff) | |
- Add 'foldername' attribute to folders table rows, so plugin writers would be able to iterate over the table rows and find wanted folders (folders_list hook)
git-svn-id: https://svn.roundcube.net/trunk@4855 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/settings/folders.inc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/roundcubemail/program/steps/settings/folders.inc b/roundcubemail/program/steps/settings/folders.inc index 90ced095f..c84f616bb 100644 --- a/roundcubemail/program/steps/settings/folders.inc +++ b/roundcubemail/program/steps/settings/folders.inc @@ -259,7 +259,7 @@ function rcube_subscription_form($attrib) $folder_utf8 = rcube_charset_convert($folder['id'], 'UTF7-IMAP'); $display_folder = str_repeat(' ', $folder['level']) . Q($protected ? rcmail_localize_foldername($folder['id']) : $folder['name']); - + if ($folder['virtual']) { $classes[] = 'virtual'; } @@ -271,8 +271,9 @@ function rcube_subscription_form($attrib) $disabled = (($protected && $subscribed) || $noselect); - $table->add_row(array('id' => 'rcmrow'.$idx, 'class' => join(' ', $classes))); - + $table->add_row(array('id' => 'rcmrow'.$idx, 'class' => join(' ', $classes), + 'foldername' => $folder['id'])); + $table->add('name', $display_folder); $table->add('subscribed', $checkbox_subscribe->show(($subscribed ? $folder_utf8 : ''), array('value' => $folder_utf8, 'disabled' => $disabled ? 'disabled' : ''))); @@ -297,7 +298,7 @@ function rcmail_folder_frame($attrib) if (!$attrib['id']) $attrib['id'] = 'rcmfolderframe'; - + $attrib['name'] = $attrib['id']; $OUTPUT->set_env('contentframe', $attrib['name']); |
