Changeset ce86f0f in github
- Timestamp:
- Dec 11, 2011 1:12:33 PM (18 months ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
- Children:
- 312ad9d
- Parents:
- 98c2d69
- Location:
- program
- Files:
-
- 3 edited
-
include/main.inc (modified) (3 diffs)
-
js/app.js (modified) (1 diff)
-
steps/mail/show.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
program/include/main.inc
r854397b rce86f0f 1171 1171 static $a_mailboxes; 1172 1172 1173 $attrib += array('maxlength' => 100, 'realnames' => false );1173 $attrib += array('maxlength' => 100, 'realnames' => false, 'unreadwrap' => ' (%s)'); 1174 1174 1175 1175 // add some labels to client … … 1218 1218 $RCMAIL->output->add_gui_object('mailboxlist', $attrib['id']); 1219 1219 $RCMAIL->output->set_env('mailboxes', $js_mailboxlist); 1220 $RCMAIL->output->set_env('unreadwrap', $attrib['unreadwrap']); 1220 1221 $RCMAIL->output->set_env('collapsed_folders', (string)$RCMAIL->config->get('collapsed_folders')); 1221 1222 } … … 1373 1374 1374 1375 $js_name = JQ($folder['id']); 1375 $html_name = Q($foldername) . ($unread ? html::span('unreadcount', " ($unread)") : '');1376 $html_name = Q($foldername) . ($unread ? html::span('unreadcount', sprintf($attrib['unreadwrap'], $unread)) : ''); 1376 1377 $link_attrib = $folder['virtual'] ? array() : array( 1377 1378 'href' => rcmail_url('', array('_mbox' => $folder['id'])), -
program/js/app.js
r7e263ea2 rce86f0f 5625 5625 5626 5626 if (mycount && text_obj.length) 5627 text_obj.html( ' ('+mycount+')');5627 text_obj.html(this.env.unreadwrap.replace(/%[sd]/, mycount)); 5628 5628 else if (text_obj.length) 5629 5629 text_obj.remove(); -
program/steps/mail/show.inc
rb6da0b7 rce86f0f 131 131 } 132 132 133 $ol .= html::tag('li', null, 133 $classes = array($attach_prop->ctype_primary ? $attach_prop->ctype_primary : 'unknown'); 134 if ($attach_prop->ctype_secondary) 135 $classes[] = $attach_prop->ctype_secondary; 136 if (preg_match('/\.([a-z0-9]+)$/', $attach_prop->filename, $m)) 137 $classes[] = $m[1]; 138 139 $ol .= html::tag('li', join(' ', $classes), 134 140 html::a(array( 135 141 'href' => $MESSAGE->get_part_url($attach_prop->mime_id, false),
Note: See TracChangeset
for help on using the changeset viewer.
