From 443b8ed854b848ddc96c6f65aa898cea9c950296 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 6 Dec 2013 23:26:48 +0000 Subject: [PATCH] Give some UI feedback if the delete does not work --- phpgwapi/js/jsapi/app_base.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpgwapi/js/jsapi/app_base.js b/phpgwapi/js/jsapi/app_base.js index 157963d8e9..851760d922 100644 --- a/phpgwapi/js/jsapi/app_base.js +++ b/phpgwapi/js/jsapi/app_base.js @@ -533,6 +533,11 @@ var AppJS = Class.extend( // Remove line from list line.slideUp("slow", function() { }); } + else + { + // Something went wrong server side + line.removeClass('loading').addClass('ui-state-error'); + } }, $j(trash).parentsUntil("li").parent(), true,