Changeset 5409 for trunk/expressoMail1_2
- Timestamp:
- 01/21/12 00:18:54 (12 years ago)
- Location:
- trunk/expressoMail1_2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.db_functions.inc.php
r5394 r5409 410 410 { 411 411 $return = false; 412 $output = unserialize($output); 413 414 ob_start(); 415 var_dump($output[0]); 416 $l = ob_get_clean(); 417 file_put_contents( "/tmp/acoutinho.log", $l , FILE_APPEND); 418 419 420 412 $output = unserialize($output); 421 413 foreach($output[0] as $key => &$value){ 422 414 -
trunk/expressoMail1_2/index.php
r5399 r5409 45 45 <script type='text/javascript' src='../prototype/plugins/alphanumeric/jquery.alphanumeric.js'></script> 46 46 <script type='text/javascript' src='../prototype/plugins/timepicker/localization/jquery-ui-timepicker-pt-BR.js'></script> 47 <script type='text/javascript' src='../prototype/modules/calendar/js/calendar.date.js'></script> 47 48 <script type='text/javascript' src='../prototype/modules/calendar/js/helpers.js'></script> 48 49 <script type='text/javascript' src='../prototype/modules/calendar/js/calendar.codecs.js'></script> 50 <script type='text/javascript' src='../prototype/modules/calendar/js/timezone.js'></script> 49 51 <script type='text/javascript' src='../prototype/plugins/encoder/encoder.js'></script> 50 52 <script type='text/javascript' src='../prototype/plugins/qtip/jquery.qtip-1.0.0-rc3.min.js'></script> -
trunk/expressoMail1_2/js/draw_api.js
r5392 r5409 2609 2609 DataLayer.dispatchPath = "../prototype/"; 2610 2610 var path = "../prototype/modules/calendar/"; 2611 2612 var startEvent = new Date(); 2613 if(startEvent.toString('mm') < 30) 2614 startEvent.add({minutes: (30 - parseInt(startEvent.toString('mm')))}); 2615 else 2616 startEvent.add({hours: 1, minutes: '-'+startEvent.toString('mm')}); 2617 var endEvent = function(date){ 2618 if(!!User.preferences.defaultCalendar){ 2619 return parseInt(date.getTime()) + 2620 ( !!Calendar.signatureOf[User.preferences.defaultCalendar].calendar.defaultDuration ? 2621 (Calendar.signatureOf[User.preferences.defaultCalendar].calendar.defaultDuration * 60000) : 2622 (User.preferences.defaultDuration * 60000) 2623 ); 2624 }else 2625 return parseInt(date.getTime()) + (User.preferences.defaultDuration * 60000); 2626 }; 2611 2627 eventDetails({ 2612 2628 summary : $("#subject_"+ID).text(), 2613 2629 description : $("#body_" + ID).text(), 2614 startTime: $.now(), 2615 endTime:!!User.preferences.defaultCalendar ? Calendar.signatureOf[User.preferences.defaultCalendar].calendar.defaultDuration != "" ? ($.now() + Calendar.signatureOf[User.preferences.defaultCalendar].calendar.defaultDuration * 60000) : (User.preferences.defaultDuration * 60000) 2616 : $.now() + (User.preferences.defaultDuration * 60000) 2630 startTime: startEvent.getTime(), 2631 endTime: endEvent(startEvent) 2617 2632 }, true, path); 2618 2633 -
trunk/expressoMail1_2/js/main.js
r5408 r5409 3388 3388 3389 3389 3390 var createDialog = function(isCorrentEvent ){3390 var createDialog = function(isCorrentEvent, propaget){ 3391 3391 3392 3392 if(!(!!isCorrentEvent)){ … … 3410 3410 success: function(msg){ 3411 3411 3412 msg = connector.unserialize(msg) == "ok" ? "Importado com sucesso para " : "Ocorreu um erro ao importar o evento para a agenda "; 3413 3414 alert( msg + $("#select-agenda option:selected").text() ); 3415 3416 $( this ).dialog( "close" ); 3412 var alt = ( (msg = connector.unserialize(msg)) == "ok") ? "Importado com sucesso para " : "Ocorreu um erro ao importar o evento para a agenda "; 3413 alert( alt + $("#select-agenda option:selected").text() ); 3417 3414 } 3418 3415 }); 3419 } 3416 3417 $( this ).dialog( "close" ); 3418 } 3420 3419 } 3421 3420 }); … … 3435 3434 if ($(".ui-dialog-buttonpane").find(".ui-button:last").children().html() == 'Atualizar'){ 3436 3435 3437 var isOk = DataLayer.put('participant', { id: ( DataLayer.get('participant', ['AND', ['=', 'user', User.me.id], ['=', 'schedulable', isCorrentEvent[0].schedulable]] ) )[0].id, 3436 3437 3438 var isOk = propaget || DataLayer.put('participant', { id: ( DataLayer.get('participant', ['AND', ['=', 'user', User.me.id], ['=', 'schedulable', isCorrentEvent[0].schedulable]] ) )[0].id, 3438 3439 status: $("#select-status option:selected").val() }); 3439 3440 … … 3465 3466 }, createDialog); 3466 3467 }else{ 3467 createDialog( false);3468 createDialog(true, true); 3468 3469 } 3469 3470 }});
Note: See TracChangeset
for help on using the changeset viewer.