Fix: Can drag from last day of event.
This commit is contained in:
parent
40349a9f53
commit
64513c10d9
@ -1175,6 +1175,7 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa
|
|||||||
}
|
}
|
||||||
$cssclass=$cssclass.' '.$cssclass.'_day_'.$ymd;
|
$cssclass=$cssclass.' '.$cssclass.'_day_'.$ymd;
|
||||||
|
|
||||||
|
// Defined style to disable drag and drop feature
|
||||||
if (empty($event->fulldayevent))
|
if (empty($event->fulldayevent))
|
||||||
{
|
{
|
||||||
if ($event->date_end_in_calendar && $event->date_start_in_calendar != $event->date_end_in_calendar)
|
if ($event->date_end_in_calendar && $event->date_start_in_calendar != $event->date_end_in_calendar)
|
||||||
@ -1182,7 +1183,7 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa
|
|||||||
$tmpyearend = date('Y',$event->date_end_in_calendar);
|
$tmpyearend = date('Y',$event->date_end_in_calendar);
|
||||||
$tmpmonthend = date('m',$event->date_end_in_calendar);
|
$tmpmonthend = date('m',$event->date_end_in_calendar);
|
||||||
$tmpdayend = date('d',$event->date_end_in_calendar);
|
$tmpdayend = date('d',$event->date_end_in_calendar);
|
||||||
if ($tmpyearend == $annee && $tmpmonthend == $mois && $tmpdayend == $jour)
|
if ($tmpyearend != $annee || $tmpmonthend != $mois || $tmpdayend != $jour)
|
||||||
{
|
{
|
||||||
$cssclass.= " unsortable";
|
$cssclass.= " unsortable";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user