Bugfix sulla Dashboard

This commit is contained in:
Thomas Zilio 2017-09-12 14:44:58 +02:00
parent f3b07fabf8
commit 2ed831fa7e
3 changed files with 7 additions and 7 deletions

View File

@ -211,12 +211,11 @@ if (!function_exists('download')) {
header('Content-Type: application/octet-stream'); header('Content-Type: application/octet-stream');
header('Content-Transfer-Encoding: binary'); header('Content-Transfer-Encoding: binary');
header('Content-Length: ' . filesize($file)); header('Content-Length: '.filesize($file));
$open = fopen($file, "rb"); $open = fopen($file, 'rb');
while(!feof($open)) while (!feof($open)) {
{ echo fread($open, 1024 * 8);
print(fread($open, 1024*8));
ob_flush(); ob_flush();
flush(); flush();
} }

View File

@ -33,6 +33,7 @@ switch (get('op')) {
$results[] = ' $results[] = '
{ {
"id": "'.$rs[$i]['id'].'", "id": "'.$rs[$i]['id'].'",
"idintervento": "'.$rs[$i]['idintervento'].'",
"idtecnico":"'.$rs[$i]['idtecnico'].'", "idtecnico":"'.$rs[$i]['idtecnico'].'",
"title":"<b>Int. '.$rs[$i]['idintervento'].'</b> '.addslashes($rs[$i]['cliente']).'<br><b>'.tr('Tecnici').':</b> '.addslashes($rs[$i]['nome_tecnico']).'", "title":"<b>Int. '.$rs[$i]['idintervento'].'</b> '.addslashes($rs[$i]['cliente']).'<br><b>'.tr('Tecnici').':</b> '.addslashes($rs[$i]['nome_tecnico']).'",
"start": "'.$rs[$i]['orario_inizio'].'", "start": "'.$rs[$i]['orario_inizio'].'",

View File

@ -488,7 +488,7 @@ if (Modules::getPermission('Interventi') == 'rw') {
editable: true, editable: true,
eventDrop: function(event,dayDelta,minuteDelta,revertFunc) { eventDrop: function(event,dayDelta,minuteDelta,revertFunc) {
$.get(globals.rootdir + "/modules/dashboard/ajaxreq.php?op=update_intervento&id="+event.id+"&timeStart="+moment(event.start).format("YYYY-MM-DD HH:mm")+"&timeEnd="+moment(event.end).format("YYYY-MM-DD HH:mm"), function(data,response){ $.get(globals.rootdir + "/modules/dashboard/ajaxreq.php?op=update_intervento&id="+event.idintervento+"&timeStart="+moment(event.start).format("YYYY-MM-DD HH:mm")+"&timeEnd="+moment(event.end).format("YYYY-MM-DD HH:mm"), function(data,response){
if( response=="success" ){ if( response=="success" ){
data = $.trim(data); data = $.trim(data);
if( data!="ok" ){ if( data!="ok" ){
@ -503,7 +503,7 @@ if (Modules::getPermission('Interventi') == 'rw') {
}); });
}, },
eventResize: function(event,dayDelta,minuteDelta,revertFunc) { eventResize: function(event,dayDelta,minuteDelta,revertFunc) {
$.get(globals.rootdir + "/modules/dashboard/ajaxreq.php?op=update_intervento&id="+event.id+"&timeStart="+moment(event.start).format("YYYY-MM-DD HH:mm")+"&timeEnd="+moment(event.end).format("YYYY-MM-DD HH:mm"), function(data,response){ $.get(globals.rootdir + "/modules/dashboard/ajaxreq.php?op=update_intervento&id="+event.idintervento+"&timeStart="+moment(event.start).format("YYYY-MM-DD HH:mm")+"&timeEnd="+moment(event.end).format("YYYY-MM-DD HH:mm"), function(data,response){
if( response=="success" ){ if( response=="success" ){
data = $.trim(data); data = $.trim(data);
if(data != "ok"){ if(data != "ok"){