Changeset f94e442 in github for program/steps/mail/compose.inc
- Timestamp:
- Dec 16, 2011 1:38:59 PM (18 months ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
- Children:
- 74d4c7f9
- Parents:
- e10f1385
- File:
-
- 1 edited
-
program/steps/mail/compose.inc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/steps/mail/compose.inc
ra90ad28 rf94e442 1234 1234 $button = Q(rcube_label('delete')); 1235 1235 1236 foreach ($COMPOSE['attachments'] as $id => $a_prop) 1237 { 1236 foreach ($COMPOSE['attachments'] as $id => $a_prop) { 1238 1237 if (empty($a_prop)) 1239 1238 continue; 1240 1239 1241 $out .= html::tag('li', array('id' => 'rcmfile'.$id ),1240 $out .= html::tag('li', array('id' => 'rcmfile'.$id, 'class' => rcmail_filetype2classname($a_prop['mimetype'], $a_prop['name'])), 1242 1241 html::a(array( 1243 1242 'href' => "#delete", 1244 1243 'title' => rcube_label('delete'), 1245 'onclick' => sprintf("return %s.command('remove-attachment','rcmfile%s', this)", JS_OBJECT_NAME, $id)), 1244 'onclick' => sprintf("return %s.command('remove-attachment','rcmfile%s', this)", JS_OBJECT_NAME, $id), 1245 'class' => 'delete'), 1246 1246 $button) . Q($a_prop['name'])); 1247 1247 … … 1268 1268 global $RCMAIL, $OUTPUT; 1269 1269 1270 // add ID if not given 1271 if (!$attrib['id']) 1272 $attrib['id'] = 'rcmUploadbox'; 1270 // set defaults 1271 $attrib += array('id' => 'rcmUploadbox', 'buttons' => 'yes'); 1273 1272 1274 1273 // Get filesize, enable upload progress bar … … 1281 1280 html::div(null, rcmail_compose_attachment_field(array('size' => $attrib['attachmentfieldsize']))) . 1282 1281 html::div('hint', rcube_label(array('name' => 'maxuploadsize', 'vars' => array('size' => $max_filesize)))) . 1283 html::div('buttons',1282 (get_boolean($attrib['buttons']) ? html::div('buttons', 1284 1283 $button->show(rcube_label('close'), array('class' => 'button', 'onclick' => "$('#$attrib[id]').hide()")) . ' ' . 1285 1284 $button->show(rcube_label('upload'), array('class' => 'button mainaction', 'onclick' => JS_OBJECT_NAME . ".command('send-attachment', this.form)")) 1286 ) 1285 ) : '') 1287 1286 ) 1288 1287 ); 1289 1288 1290 $OUTPUT->add_gui_object('upload box', $attrib['id']);1289 $OUTPUT->add_gui_object('uploadform', $attrib['id']); 1291 1290 return $out; 1292 1291 }
Note: See TracChangeset
for help on using the changeset viewer.
