Changeset 5619
- Timestamp:
- 03/04/12 12:39:47 (11 years ago)
- Location:
- trunk/expressoMail1_2/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/draw_api.js
r5612 r5619 2878 2878 new_event_logo.style.marginLeft = "5px"; 2879 2879 new_event_logo.onclick = function(){ 2880 import_implements_calendar(); 2881 2882 2880 2883 DataLayer.dispatchPath = "../prototype/"; 2881 2884 var path = "../prototype/modules/calendar/"; -
trunk/expressoMail1_2/js/main.js
r5614 r5619 3237 3237 } 3238 3238 3239 function 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 3239 3256 function select_import_folder(){ 3240 3257 //Begin: Verify if the file extension is allowed. … … 3289 3306 } 3290 3307 if(new_agenda == "True" && $("#expressoCalendarid")[0]){ 3308 import_implements_calendar(); 3291 3309 $( "#import-dialog" ).dialog({ 3292 3310 autoOpen: false, … … 3311 3329 case 1: 3312 3330 $("#select-agenda").html(''); 3313 for(var calendario in Calendar.calendarIds){3331 for(var id in Calendar.calendars){ 3314 3332 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; 3317 3335 $("#select-agenda").append(doc); 3318 3336
Note: See TracChangeset
for help on using the changeset viewer.