Changeset 6393 for trunk/prototype/modules/calendar/js/helpers.js
- Timestamp:
- 06/02/12 17:33:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/js/helpers.js
r6371 r6393 1411 1411 1412 1412 if(!!data.result && data.result != "[]"){ 1413 var newAttach = jQuery.parseJSON(data.result);1413 var newAttach = (attch = jQuery.parseJSON(data.result)) ? attch : jQuery.parseJSON(data.result[0].activeElement.childNodes[0].data); 1414 1414 $('.attachment-list').append('<input tyepe="hidden" name="attachment[]" value="'+newAttach['attachment'][0][0].id+'"/>'); 1415 1415 currentUpload.removeClass('on-complete').parents('p') … … 1421 1421 }); 1422 1422 $('.attachments-list .button').button(); 1423 1423 1424 if(!!window.FormData) 1424 1425 $('#fileupload').bind('fileuploadstart', function () { 1425 1426 var widget = $(this),
Note: See TracChangeset
for help on using the changeset viewer.