Thomas Bruederli
2013-09-30 444e977d4f48712a05fee4fa43bb7d543dc7191d
Also truncate the list of addresses in print view + add link to show them all
3 files modified
18 ■■■■ changed files
program/steps/mail/func.inc 14 ●●●● patch | view | raw | blame | history
skins/classic/templates/messageprint.html 2 ●●● patch | view | raw | blame | history
skins/larry/templates/messageprint.html 2 ●●● patch | view | raw | blame | history
program/steps/mail/func.inc
@@ -1470,9 +1470,7 @@
    $mailto = rcube_idn_to_utf8($mailto);
    if ($PRINT_MODE) {
      $out .= ($out ? ', ' : '') . sprintf('%s <%s>', Q($name), $mailto);
      // for printing we display all addresses
      continue;
      $address = sprintf('%s <%s>', Q($name), Q($mailto));
    }
    else if ($valid) {
      if ($linked) {
@@ -1536,6 +1534,15 @@
  }
  if ($moreadrs) {
    if ($PRINT_MODE) {
      $out .= ' ' . html::a(array(
        'href' => '#more',
        'class' => 'morelink',
        'onclick' => '$(this).hide().next().show()',
      ), Q(rcube_label(array('name' => 'andnmore', 'vars' => array('nr' => $moreadrs))))) .
      html::span(array('style' => 'display:none'), join(', ', $allvalues));
    }
    else {
      $out .= ' ' . html::a(array(
          'href' => '#more',
          'class' => 'morelink',
@@ -1545,6 +1552,7 @@
            JQ($title))
        ),
        Q(rcube_label(array('name' => 'andnmore', 'vars' => array('nr' => $moreadrs)))));
    }
  }
  return $out;
skins/classic/templates/messageprint.html
@@ -10,7 +10,7 @@
<roundcube:object name="logo" src="/images/roundcube_logo.png" id="logo" border="0" />
<div id="printmessageframe">
<roundcube:object name="messageHeaders" class="headers-table" cellspacing="0" cellpadding="2" />
<roundcube:object name="messageHeaders" class="headers-table" cellspacing="0" cellpadding="2" max="10" />
<roundcube:object name="messageAttachments" id="attachment-list" />
<roundcube:object name="messageBody" id="messagebody" showImages="false" />
</div>
skins/larry/templates/messageprint.html
@@ -10,7 +10,7 @@
<div id="header"><roundcube:object name="logo" src="/images/roundcube_logo.png" id="toplogo" border="0" alt="Logo" /></div>
<div id="printmessageframe">
<roundcube:object name="messageHeaders" class="headers-table" />
<roundcube:object name="messageHeaders" class="headers-table" max="10" />
<roundcube:object name="messageAttachments" id="attachment-list" />
<roundcube:object name="messageBody" id="messagebody" showImages="false" />
</div>