error messages for show moving/resizing displayed in an alert.
This commit is contained in:
parent
55eddb133b
commit
cb3f4dd31e
|
@ -441,7 +441,7 @@ class ShowInstance {
|
||||||
$overlap = Show::getShows($new_starts, $new_ends, array($this->_instanceId));
|
$overlap = Show::getShows($new_starts, $new_ends, array($this->_instanceId));
|
||||||
|
|
||||||
if(count($overlap) > 0) {
|
if(count($overlap) > 0) {
|
||||||
return $overlap;
|
return "Should not overlap shows";
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->moveScheduledShowContent($deltaDay, $hours, $mins);
|
$this->moveScheduledShowContent($deltaDay, $hours, $mins);
|
||||||
|
@ -471,7 +471,7 @@ class ShowInstance {
|
||||||
$overlap = Show::getShows($ends, $new_ends);
|
$overlap = Show::getShows($ends, $new_ends);
|
||||||
|
|
||||||
if(count($overlap) > 0) {
|
if(count($overlap) > 0) {
|
||||||
return $overlap;
|
return "Should not overlap shows";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//have to check if any scheduled content still fits.
|
//have to check if any scheduled content still fits.
|
||||||
|
|
|
@ -117,6 +117,7 @@ function eventDrop(event, dayDelta, minuteDelta, allDay, revertFunc, jsEvent, ui
|
||||||
{day: dayDelta, min: minuteDelta, showInstanceId: event.id},
|
{day: dayDelta, min: minuteDelta, showInstanceId: event.id},
|
||||||
function(json){
|
function(json){
|
||||||
if(json.error) {
|
if(json.error) {
|
||||||
|
alert(json.error);
|
||||||
revertFunc();
|
revertFunc();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -131,6 +132,7 @@ function eventResize( event, dayDelta, minuteDelta, revertFunc, jsEvent, ui, vie
|
||||||
{day: dayDelta, min: minuteDelta, showInstanceId: event.id},
|
{day: dayDelta, min: minuteDelta, showInstanceId: event.id},
|
||||||
function(json){
|
function(json){
|
||||||
if(json.error) {
|
if(json.error) {
|
||||||
|
alert(json.error);
|
||||||
revertFunc();
|
revertFunc();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue