From 0ecc494cb4e852fbafb31d566b1323f35ddf8b02 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 12 Dec 2013 00:00:54 +0000 Subject: [PATCH] Remove loading class if there is no favorite delete being processed --- phpgwapi/js/jsapi/app_base.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpgwapi/js/jsapi/app_base.js b/phpgwapi/js/jsapi/app_base.js index a264cad502..e68edae455 100644 --- a/phpgwapi/js/jsapi/app_base.js +++ b/phpgwapi/js/jsapi/app_base.js @@ -520,7 +520,11 @@ var AppJS = Class.extend( // Make sure first var do_delete = function(button_id) { - if(button_id != et2_dialog.YES_BUTTON) return; + if(button_id != et2_dialog.YES_BUTTON) + { + $j(line).removeClass('loading'); + return; + } // Hide the trash $j(trash).hide();