Ignore:
Timestamp:
06/02/12 17:33:39 (12 years ago)
Author:
acoutinho
Message:

Ticket #2831 - Implementação ao suporte a repetição de eventos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/calendar/js/helpers.js

    r6371 r6393  
    14111411 
    14121412        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); 
    14141414            $('.attachment-list').append('<input tyepe="hidden" name="attachment[]" value="'+newAttach['attachment'][0][0].id+'"/>'); 
    14151415            currentUpload.removeClass('on-complete').parents('p') 
     
    14211421}); 
    14221422$('.attachments-list .button').button(); 
    1423                          
     1423 
     1424if(!!window.FormData)                    
    14241425$('#fileupload').bind('fileuploadstart', function () { 
    14251426    var widget = $(this), 
Note: See TracChangeset for help on using the changeset viewer.