Give some UI feedback if the delete does not work

This commit is contained in:
Nathan Gray 2013-12-06 23:26:48 +00:00
parent bd47e10b10
commit 443b8ed854

View File

@ -533,6 +533,11 @@ var AppJS = Class.extend(
// Remove line from list // Remove line from list
line.slideUp("slow", function() { }); line.slideUp("slow", function() { });
} }
else
{
// Something went wrong server side
line.removeClass('loading').addClass('ui-state-error');
}
}, },
$j(trash).parentsUntil("li").parent(), $j(trash).parentsUntil("li").parent(),
true, true,