Changeset 1716d5e in github for program/steps/mail/func.inc


Ignore:
Timestamp:
Oct 8, 2010 3:14:03 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
f1ad3650
Parents:
e947068
Message:
  • Add message list menu to css-sprite image
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/steps/mail/func.inc

    re947068 r1716d5e  
    359359  $a_sort_cols = array('subject', 'date', 'from', 'to', 'size', 'cc'); 
    360360 
    361   if (!empty($attrib['optionsmenuicon'])) 
    362     $list_menu = html::a( 
    363       array('href' => '#', 'onclick' => 'return '.JS_OBJECT_NAME.".command('menu-open', 'messagelistmenu')"), 
    364       html::img(array('src' => $skin_path . $attrib['optionsmenuicon'], 'id' => 'listmenulink', 'title' => rcube_label('listoptions'))) 
    365     ); 
     361  if (!empty($attrib['optionsmenuicon'])) { 
     362    $onclick = 'return ' . JS_OBJECT_NAME . ".command('menu-open', 'messagelistmenu')"; 
     363    if ($attrib['optionsmenuicon'] === true || $attrib['optionsmenuicon'] == 'true') 
     364      $list_menu = html::div(array('onclick' => $onclick, 'class' => 'listmenu', 
     365        'id' => 'listmenulink', 'title' => rcube_label('listoptions'))); 
     366    else 
     367      $list_menu = html::a(array('href' => '#', 'onclick' => $onclick), 
     368        html::img(array('src' => $skin_path . $attrib['optionsmenuicon'], 
     369          'id' => 'listmenulink', 'title' => rcube_label('listoptions'))) 
     370      ); 
     371  } 
    366372  else 
    367373    $list_menu = ''; 
Note: See TracChangeset for help on using the changeset viewer.