diff --git a/modules/dashboard/edit.php b/modules/dashboard/edit.php index 5b1dda892..a499cd391 100644 --- a/modules/dashboard/edit.php +++ b/modules/dashboard/edit.php @@ -62,7 +62,7 @@ for ($i = 0; $i < count($rs); ++$i) { } } - $checks .= "
  • \n"; + $checks .= "
  • \n"; $allchecksstati .= "session_set_array( 'dashboard,idstatiintervento', '".$rs[$i]['id']."', 0 ); "; } @@ -117,7 +117,7 @@ for ($i = 0; $i < count($rs); ++$i) { } - $checks .= "
  • \n"; + $checks .= "
  • \n"; $allcheckstipi .= "session_set_array( 'dashboard,idtipiintervento', '".$rs[$i]['id']."', 0 ); "; } @@ -176,7 +176,7 @@ for ($i = 0; $i < count($rs); ++$i) { - $checks .= "
  • \n"; + $checks .= "
  • \n"; $allchecktecnici .= "session_set_array( 'dashboard,idtecnici', '".$rs[$i]['id']."', 0 ); "; } @@ -199,7 +199,7 @@ if ($total > 0) { } } - $checks .= "
  • \n"; + $checks .= "
  • \n"; $allchecktecnici .= "session_set_array( 'dashboard,idtecnici', '".$rs[$i]['id']."', 0 ); "; } // end for @@ -330,7 +330,7 @@ if ($vista == 'mese') { $(this).parent().parent().find('li input[type=checkbox]').each(function(i) { //loop through each checkbox this.checked = true; - $.when (session_set_array( 'dashboard,idstatiintervento', this.value, 0 )).promise().done(function() { + $.when (session_set_array( 'dashboard,idstatiintervento', this.value, 0 )).promise().then(function() { $('#calendar').fullCalendar('refetchEvents'); }); @@ -345,7 +345,7 @@ if ($vista == 'mese') { $(this).parent().parent().find('li input[type=checkbox]').each(function(i) { //loop through each checkbox this.checked = true; - $.when (session_set_array( 'dashboard,idtipiintervento', this.value, 0 )).promise().done(function() { + $.when (session_set_array( 'dashboard,idtipiintervento', this.value, 0 )).promise().then(function() { $('#calendar').fullCalendar('refetchEvents'); }); i++; @@ -359,7 +359,7 @@ if ($vista == 'mese') { $(this).parent().parent().find('li input[type=checkbox]').each(function(i) { //loop through each checkbox this.checked = true; - $.when (session_set_array( 'dashboard,idtecnici', this.value, 0 )).promise().done(function() { + $.when (session_set_array( 'dashboard,idtecnici', this.value, 0 )).promise().then(function() { $('#calendar').fullCalendar('refetchEvents'); }); i++; @@ -372,7 +372,7 @@ if ($vista == 'mese') { $(this).parent().parent().find('li input[type=checkbox]').each(function(i) { //loop through each checkbox this.checked = true; - $.when (session_set_array( 'dashboard,idzone', this.value, 0 )).promise().done(function() { + $.when (session_set_array( 'dashboard,idzone', this.value, 0 )).promise().then(function() { $('#calendar').fullCalendar('refetchEvents'); }); @@ -388,7 +388,7 @@ if ($vista == 'mese') { $(this).parent().parent().find('li input[type=checkbox]').each(function() { //loop through each checkbox this.checked = false; - $.when (session_set_array( 'dashboard,idstatiintervento', this.value, 1 )).promise().done(function() { + $.when (session_set_array( 'dashboard,idstatiintervento', this.value, 1 )).promise().then(function() { $('#calendar').fullCalendar('refetchEvents'); }); @@ -402,7 +402,7 @@ if ($vista == 'mese') { $(this).parent().parent().find('li input[type=checkbox]').each(function() { //loop through each checkbox this.checked = false; - $.when (session_set_array( 'dashboard,idtipiintervento', this.value, 1 )).promise().done(function() { + $.when (session_set_array( 'dashboard,idtipiintervento', this.value, 1 )).promise().then(function() { $('#calendar').fullCalendar('refetchEvents'); }); @@ -417,7 +417,7 @@ if ($vista == 'mese') { $(this).parent().parent().find('li input[type=checkbox]').each(function() { //loop through each checkbox this.checked = false; - $.when (session_set_array( 'dashboard,idtecnici', this.value, 1 )).promise().done(function() { + $.when (session_set_array( 'dashboard,idtecnici', this.value, 1 )).promise().then(function() { $('#calendar').fullCalendar('refetchEvents'); }); @@ -431,7 +431,7 @@ if ($vista == 'mese') { $(this).parent().parent().find('li input[type=checkbox]').each(function() { //loop through each checkbox this.checked = false; - $.when (session_set_array( 'dashboard,idzone', this.value, 1 )).promise().done(function() { + $.when (session_set_array( 'dashboard,idzone', this.value, 1 )).promise().then(function() { $('#calendar').fullCalendar('refetchEvents'); });