Changeset 5619


Ignore:
Timestamp:
03/04/12 12:39:47 (12 years ago)
Author:
acoutinho
Message:

Ticket #2434 - Remocao do importe de arquivos da agenda na inicializacao do modulo expressoMail

Location:
trunk/expressoMail1_2/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/draw_api.js

    r5612 r5619  
    28782878                new_event_logo.style.marginLeft = "5px"; 
    28792879                new_event_logo.onclick = function(){ 
     2880                import_implements_calendar(); 
     2881                 
     2882                 
    28802883                        DataLayer.dispatchPath = "../prototype/"; 
    28812884                        var path = "../prototype/modules/calendar/"; 
  • trunk/expressoMail1_2/js/main.js

    r5614 r5619  
    32373237} 
    32383238 
     3239function import_implements_calendar(){ 
     3240 
     3241        if(typeof(Calendar) == "undefined"){ 
     3242                $.ajax({ url: "../expressoCalendar/index.php", async: false}); 
     3243                $.ajax({ url: "../prototype/modules/calendar/js/calendar.date.js", async: false}); 
     3244                $.ajax({ url: "../prototype/modules/calendar/js/helpers.js", async: false}); 
     3245                $.ajax({ url: "../prototype/modules/calendar/js/timezone.js", async: false}); 
     3246                $.ajax({ url: "../prototype/modules/calendar/js/calendar.codecs.js", async: false}); 
     3247                $.ajax({ url: "../prototype/plugins/encoder/encoder.js", async: false}); 
     3248                $.ajax({ url: "../prototype/plugins/dateFormat/dateFormat.js", async: false}); 
     3249 
     3250                 
     3251                DataLayer.dispatchPath = "../prototype/";        
     3252        } 
     3253} 
     3254 
     3255 
    32393256function select_import_folder(){ 
    32403257        //Begin: Verify if the file extension is allowed. 
     
    32893306    }    
    32903307        if(new_agenda == "True" && $("#expressoCalendarid")[0]){ 
     3308                import_implements_calendar(); 
    32913309                $( "#import-dialog" ).dialog({ 
    32923310                        autoOpen: false, 
     
    33113329                                                case 1: 
    33123330                                                        $("#select-agenda").html(''); 
    3313                                                                 for(var calendario in Calendar.calendarIds){ 
     3331                                                                for(var id in Calendar.calendars){ 
    33143332                                                                                var doc = document .createElement("OPTION"); 
    3315                                                                                 doc.value = Calendar.signatures[parseInt(calendario)].calendar.id; 
    3316                                                                                 doc.innerHTML = Calendar.signatures[parseInt(calendario)].calendar.name; 
     3333                                                                                doc.value = Calendar.calendars[id].id; 
     3334                                                                                doc.innerHTML = Calendar.calendars[id].name; 
    33173335                                                                                $("#select-agenda").append(doc); 
    33183336                                                                           
Note: See TracChangeset for help on using the changeset viewer.