Ignore:
Timestamp:
08/09/12 12:25:44 (12 years ago)
Author:
acoutinho
Message:

Ticket #2966 - Correcoes de bugs e melhorias / suporte a historico em atividades

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.4.2-expresso1/prototype/modules/calendar/js/helpers.js

    r6959 r6974  
    14671467}); 
    14681468var maxSizeFile = 2000000; 
    1469 $('#fileupload').fileupload({ 
     1469$('#fileuploadevent').fileupload({ 
    14701470    sequentialUploads: true, 
    14711471    add: function (e, data) { 
     
    14841484                attach.error = 'Tamanho de arquivo nao permitido!!' 
    14851485                                 
    1486             $('.attachments-list').append(DataLayer.render(path+'templates/attachment_add_itemlist.ejs', { 
     1486            $('div.new-event-win .attachments-list').append(DataLayer.render(path+'templates/attachment_add_itemlist.ejs', { 
    14871487                file : attach 
    14881488            })); 
    14891489                                 
    14901490            if(file.size < maxSizeFile){ 
    1491                 $('.fileinput-button.new').append(data.fileInput[0]).removeClass('new'); 
    1492                 $('.attachments-list').find('[type=file]').addClass('hidden'); 
     1491                $('div.new-event-win .fileinput-button.new').append(data.fileInput[0]).removeClass('new'); 
     1492                $('div.new-event-win .attachments-list').find('[type=file]').addClass('hidden'); 
    14931493                                         
    14941494            }else 
    1495                 $('.fileinput-button.new').removeClass('new'); 
     1495                $('div.new-event-win .fileinput-button.new').removeClass('new'); 
    14961496                                 
    14971497                                 
    1498             $('.attachments-list').find('.button.close').button({ 
     1498            $('div.new-event-win .attachments-list').find('.button.close').button({ 
    14991499                icons: { 
    15001500                    primary: "ui-icon-close" 
     
    15031503            }).click(function(){ 
    15041504                var idAttach = $(this).parent().find('input[name="fileId[]"]').val(); 
    1505                 $('.attachment-list').find('input[value="'+idAttach+'"]') 
     1505                $('div.new-event-win .attachment-list').find('input[value="'+idAttach+'"]') 
    15061506                $(this).parent().remove(); 
    15071507            });  
     
    15101510        }, 
    15111511    done: function(e, data){ 
    1512         var currentUpload = $('.progress.after-upload:first').removeClass('after-upload').addClass('on-complete').hide(); 
     1512        var currentUpload = $('div.new-event-win .progress.after-upload:first').removeClass('after-upload').addClass('on-complete').hide(); 
    15131513 
    15141514        if(!!data.result && data.result != "[]"){ 
    15151515            var newAttach = (attch = jQuery.parseJSON(data.result)) ? attch : jQuery.parseJSON(data.result[0].activeElement.childNodes[0].data); 
    1516             $('.attachment-list').append('<input tyepe="hidden" name="attachment[]" value="'+newAttach['attachment'][0][0].id+'"/>'); 
     1516            $('div.new-event-win .attachment-list').append('<input tyepe="hidden" name="attachment[]" value="'+newAttach['attachment'][0][0].id+'"/>'); 
    15171517            currentUpload.removeClass('on-complete').parents('p') 
    15181518            .append('<input type="hidden" name="fileId[]" value="'+newAttach['attachment'][0][0].id+'"/>') 
     
    15251525 
    15261526if(!!window.FormData)                    
    1527 $('#fileupload').bind('fileuploadstart', function () { 
     1527$('#fileuploadevent').bind('fileuploadstart', function () { 
    15281528    var widget = $(this), 
    1529     progressElement = $('#fileupload-progress').fadeIn(), 
     1529    progressElement = $('#fileupload-progress-event').fadeIn(), 
    15301530    interval = 500, 
    15311531    total = 0, 
     
    22402240                    }) 
    22412241                    .click(function(){ 
    2242                           meu_container.find('.button.'+typeCalendar.type).qtip('destroy'); 
     2242                              $('.qtip.qtip-blue').remove(); 
    22432243                    }); 
    22442244                     
Note: See TracChangeset for help on using the changeset viewer.