Changeset 5515
- Timestamp:
- 02/15/12 10:21:28 (12 years ago)
- Location:
- trunk/prototype/modules/calendar
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/css/layout.css
r5514 r5515 271 271 */ 272 272 273 .attendee-options{ position: absolute; top: 0; left: 300px; background-color: white; z-index: 100; width: 90px; background-color: #FFF; padding: 0 5px 0 3px; text-align: right;}273 .attendee-options{ position: absolute; top: 0; left: 287px; background-color: white; z-index: 100; width: 90px; background-color: #FFF; padding: 0 20px 0 3px; text-align: right;} 274 274 .attendees-list .not-attendee { height:16px; } 275 275 … … 538 538 .archive-nome{width: 73px;} 539 539 .archive-nome label{display: block; position: absolute; left: 136px; top: 194px;} 540 .archive-size{min-width: 100px; max-width:100px;}540 .archive-size{min-width:70px; max-width:75px;} 541 541 542 542 -
trunk/prototype/modules/calendar/js/calendar.codecs.js
r5514 r5515 508 508 var attach = DataLayer.get('schedulableToAttachment', attachment, false); 509 509 attach.name = attach.name.length < 10 ? attach.name : ( attach.name.substr(0, 6) + attach.name.substr( attach.name.length-4, attach.name.length)); 510 510 attach.size = formatBytes(attach.size); 511 511 return attach; 512 512 }), -
trunk/prototype/modules/calendar/js/helpers.js
r5514 r5515 1 function formatBytes(bytes) { 2 if (bytes >= 1000000000) { 3 return (bytes / 1000000000).toFixed(2) + ' GB'; 4 } 5 if (bytes >= 1000000) { 6 return (bytes / 1000000).toFixed(2) + ' MB'; 7 } 8 if (bytes >= 1000) { 9 return (bytes / 1000).toFixed(2) + ' KB'; 10 } 11 return bytes + ' B'; 12 }; 13 1 14 function validDateEvent(){ 2 15 var start_date = $(".new-event-win.active .start-date").val(); … … 241 254 checked = true; 242 255 $(this).parents('li').find('.button.edit').click(); 243 //$('.qtip-active .button.save .ui-button-text').html('Aplicar a todos')244 256 } 245 246 checked = true;247 $(this).parents('li').find('.button.edit').click();248 257 }).removeClass('new'); 249 258 … … 890 899 if(file.name.length > 10) 891 900 attach.fileName = file.name.substr(0, 6) + file.name.substr(file.name.length-4, file.name.length); 892 attach.fileSize = f ile.size;901 attach.fileSize = formatBytes(file.size); 893 902 if(file.size > 30000000) 894 903 attach.error = 'Tamanho de arquivo nao permitido!!' … … 941 950 } 942 951 }); 943 $('.attachments-list .button').button(); 944 945 946 952 $('.attachments-list .button').button(); 953 947 954 $('#fileupload').bind('fileuploadstart', function () { 948 955 var widget = $(this), … … 972 979 ('0' + date.getUTCSeconds()).slice(-2); 973 980 }, 974 formatBytes = function (bytes) {981 /* formatBytes = function (bytes) { 975 982 if (bytes >= 1000000000) { 976 983 return (bytes / 1000000000).toFixed(2) + ' GB'; … … 983 990 } 984 991 return bytes + ' B'; 985 }, 992 },*/ 986 993 formatPercentage = function (floatValue) { 987 994 return (floatValue * 100).toFixed(2) + ' %'; -
trunk/prototype/modules/calendar/templates/attachment_add_itemlist.ejs
r5514 r5515 5 5 6 6 <label class="lbl-archive-size">Tamanho:</label> 7 <span class="archive-size"><%=data.file.fileSize%> kb</span>7 <span class="archive-size"><%=data.file.fileSize%></span> 8 8 <button type="button" class="button close tiny upload delete-upload" title="Deletar">Deletar</button> 9 9 <span class="status-upload"></span> -
trunk/prototype/modules/calendar/templates/event_add.ejs
r5514 r5515 181 181 182 182 <label class="lbl-archive-size">Tamanho:</label> 183 <span class="archive-size"><%=data.event.attachments[i].size%> kb</span>183 <span class="archive-size"><%=data.event.attachments[i].size%></span> 184 184 <a href="../prototype/getArchive.php?attachment=<%=data.event.attachments[i].id%>" class="button tiny upload downlaod-archive">Download</a> 185 185 <%if(data.event.acl.organization || data.event.acl.write){%> … … 198 198 199 199 </form> 200 201 </fieldset> 202 203 </fieldset> 204 --> 205 </form> 200 </fieldset> 206 201 <form action="../prototype/modules/calendar/export.php" method="GET" class="form-export content"> 207 202 <input type="hidden" class="id-event" name="event" value="<%= data.event.id %>"/>
Note: See TracChangeset
for help on using the changeset viewer.