diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-07-05 19:25:47 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-07-05 19:25:47 +0000 |
| commit | 80e9c7569e763991640fbf169dab7e05a729da9a (patch) | |
| tree | 272fc29b0cec8ac9f8a7ab406fe57d26a8a58177 /roundcubemail/program | |
| parent | 46fba1d1727b2cb075f2aa51422c595c75cc16e1 (diff) | |
- don't create rcube_browser object twice
git-svn-id: https://svn.roundcube.net/trunk@2712 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/steps/mail/func.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index 004f80d7e..e7eb4b373 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -244,7 +244,6 @@ function rcmail_message_list($attrib) if (!sizeof($a_headers)) $OUTPUT->show_message('nomessagesfound', 'notice'); - $browser = new rcube_browser; $a_js_message_arr = array(); // create row for each message @@ -314,7 +313,7 @@ function rcmail_message_list($attrib) $uid_param = $mbox==$CONFIG['drafts_mbox'] ? '_draft_uid' : '_uid'; $cont = abbreviate_string(trim($IMAP->decode_header($header->$col)), 160); if (empty($cont)) $cont = rcube_label('nosubject'); - $cont = $browser->ie ? Q($cont) : sprintf('<a href="%s" onclick="return rcube_event.cancel(event)">%s</a>', Q(rcmail_url($action, array($uid_param=>$header->uid, '_mbox'=>$mbox))), Q($cont)); + $cont = $OUTPUT->browser->ie ? Q($cont) : sprintf('<a href="%s" onclick="return rcube_event.cancel(event)">%s</a>', Q(rcmail_url($action, array($uid_param=>$header->uid, '_mbox'=>$mbox))), Q($cont)); } else if ($col=='flag') $cont = $flagged_icon ? sprintf($image_tag, $skin_path, $flagged_icon, '') : ''; @@ -455,7 +454,7 @@ function rcmail_js_message_list($a_headers, $insert_top=FALSE, $replace=TRUE) $a_msg_flags['forwarded'] = 1; if ($header->flagged) $a_msg_flags['flagged'] = 1; - + $OUTPUT->command('add_message_row', $header->uid, $a_msg_cols, |
