Changeset 5720 for trunk/prototype/modules/calendar/js/calendar.codecs.js
- Timestamp:
- 03/14/12 15:15:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/js/calendar.codecs.js
r5715 r5720 584 584 attachments: $.map(objEvent.attachments || [], function( attachment, i ){ 585 585 var attach = DataLayer.get('schedulableToAttachment', attachment, false); 586 attach.name = attach.name.length < 10 ? attach.name : ( attach.name.substr(0, 6) + attach.name.substr( attach.name.length-4, attach.name.length)); 586 var ext = attach.name.split('.'); 587 attach.name = attach.name.length < 10 ? attach.name : ( ext.length == 1 ? attach.name.substr(0, 10) : (attach.name.substr(0, 6) + '.' + ext[ext.length -1])); 587 588 attach.size = formatBytes(attach.size); 588 589 return attach;
Note: See TracChangeset
for help on using the changeset viewer.