Bugfix sulla Dashboard
This commit is contained in:
parent
f3b07fabf8
commit
2ed831fa7e
|
@ -211,12 +211,11 @@ if (!function_exists('download')) {
|
|||
header('Content-Type: application/octet-stream');
|
||||
header('Content-Transfer-Encoding: binary');
|
||||
|
||||
header('Content-Length: ' . filesize($file));
|
||||
header('Content-Length: '.filesize($file));
|
||||
|
||||
$open = fopen($file, "rb");
|
||||
while(!feof($open))
|
||||
{
|
||||
print(fread($open, 1024*8));
|
||||
$open = fopen($file, 'rb');
|
||||
while (!feof($open)) {
|
||||
echo fread($open, 1024 * 8);
|
||||
ob_flush();
|
||||
flush();
|
||||
}
|
||||
|
|
|
@ -33,6 +33,7 @@ switch (get('op')) {
|
|||
$results[] = '
|
||||
{
|
||||
"id": "'.$rs[$i]['id'].'",
|
||||
"idintervento": "'.$rs[$i]['idintervento'].'",
|
||||
"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']).'",
|
||||
"start": "'.$rs[$i]['orario_inizio'].'",
|
||||
|
|
|
@ -488,7 +488,7 @@ if (Modules::getPermission('Interventi') == 'rw') {
|
|||
|
||||
editable: true,
|
||||
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" ){
|
||||
data = $.trim(data);
|
||||
if( data!="ok" ){
|
||||
|
@ -503,7 +503,7 @@ if (Modules::getPermission('Interventi') == 'rw') {
|
|||
});
|
||||
},
|
||||
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" ){
|
||||
data = $.trim(data);
|
||||
if(data != "ok"){
|
||||
|
|
Loading…
Reference in New Issue