can't move a show into the past.

This commit is contained in:
naomiaro 2011-02-05 17:19:54 -05:00
parent c45437633b
commit bc6dd374f4
3 changed files with 18 additions and 9 deletions

View file

@ -139,7 +139,7 @@ function eventDrop(event, dayDelta, minuteDelta, allDay, revertFunc, jsEvent, ui
$.post(url,
{day: dayDelta, min: minuteDelta, showInstanceId: event.id},
function(json){
if(json.overlap) {
if(json.error) {
revertFunc();
}
});
@ -153,7 +153,7 @@ function eventResize( event, dayDelta, minuteDelta, revertFunc, jsEvent, ui, vie
$.post(url,
{day: dayDelta, min: minuteDelta, showInstanceId: event.id},
function(json){
if(json.overlap) {
if(json.error) {
revertFunc();
}
});