From f0104dc7265f69995c81c0db2aecae15656c89cc Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Mon, 21 Oct 2013 17:22:42 +0200 Subject: [PATCH] // Wait 1s for ajax element close --- js/admin.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/admin.js b/js/admin.js index 0d3bb1009..d71935cbe 100644 --- a/js/admin.js +++ b/js/admin.js @@ -861,12 +861,14 @@ $(document).ready(function() }); $('#ajax_running').ajaxStop(function() { - $(this).slideUp('fast'); + var element = $(this) + setTimeout(function(){element.slideUp('fast')}, 1000); clearTimeout(ajax_running_timeout); }); $('#ajax_running').ajaxError(function() { - $(this).slideUp('fast'); + var element = $(this) + setTimeout(function(){element.slideUp('fast')}, 1000); clearTimeout(ajax_running_timeout); });