diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-10-08 07:14:03 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-10-08 07:14:03 +0000 |
| commit | 58002b283e6cf6776502997d3065f1d8e95966a7 (patch) | |
| tree | fc0a7f7dc0dda6611ec8319f755dca333f55c416 /roundcubemail/program/steps | |
| parent | 3491baf2fb17ad34a2cdc92e4b30e3a21af0b9fa (diff) | |
- Add message list menu to css-sprite image
git-svn-id: https://svn.roundcube.net/trunk@4061 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/mail/func.inc | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index 914ab1538..ab2109fc5 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -358,11 +358,17 @@ function rcmail_message_list_head($attrib, $a_show_cols) // define sortable columns $a_sort_cols = array('subject', 'date', 'from', 'to', 'size', 'cc'); - if (!empty($attrib['optionsmenuicon'])) - $list_menu = html::a( - array('href' => '#', 'onclick' => 'return '.JS_OBJECT_NAME.".command('menu-open', 'messagelistmenu')"), - html::img(array('src' => $skin_path . $attrib['optionsmenuicon'], 'id' => 'listmenulink', 'title' => rcube_label('listoptions'))) - ); + if (!empty($attrib['optionsmenuicon'])) { + $onclick = 'return ' . JS_OBJECT_NAME . ".command('menu-open', 'messagelistmenu')"; + if ($attrib['optionsmenuicon'] === true || $attrib['optionsmenuicon'] == 'true') + $list_menu = html::div(array('onclick' => $onclick, 'class' => 'listmenu', + 'id' => 'listmenulink', 'title' => rcube_label('listoptions'))); + else + $list_menu = html::a(array('href' => '#', 'onclick' => $onclick), + html::img(array('src' => $skin_path . $attrib['optionsmenuicon'], + 'id' => 'listmenulink', 'title' => rcube_label('listoptions'))) + ); + } else $list_menu = ''; |
