From d79b229bf72ed743cdf0cd1e9779ae3cdcb0ca1f Mon Sep 17 00:00:00 2001 From: Felipe Bormann Date: Tue, 23 May 2017 19:39:29 -0300 Subject: [PATCH] fixed error of multiple most accessed lists --- dashboards/static/dashboards/js/behavior.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dashboards/static/dashboards/js/behavior.js b/dashboards/static/dashboards/js/behavior.js index 1846d98..c6f7fbd 100644 --- a/dashboards/static/dashboards/js/behavior.js +++ b/dashboards/static/dashboards/js/behavior.js @@ -119,7 +119,8 @@ var selectors_options = { }, deleteChildren: function(e){ var most_accessed_list = $(e).next(); - $(most_accessed_list).slideUp({easing: 'easeInOutSine'}, 1200); + $(most_accessed_list).slideUp({easing: 'easeInOutSine'}, 1200); + $(most_accessed_list).remove(); $(e).removeAttr("opened"); //remove attribute so it can call API again }, }; -- libgit2 0.21.2