From f7d315f198f34ab45f877b45dabd3c5303fd626c Mon Sep 17 00:00:00 2001 From: PavelBegunkov <asml.Silence@gmail.com> Date: Tue, 23 Sep 2014 19:28:02 +0400 Subject: [PATCH] fix --- ~dev_rating/media/js/event_inspector/event_inspector.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/~dev_rating/media/js/event_inspector/event_inspector.js b/~dev_rating/media/js/event_inspector/event_inspector.js index 97f46314f..47307b731 100644 --- a/~dev_rating/media/js/event_inspector/event_inspector.js +++ b/~dev_rating/media/js/event_inspector/event_inspector.js @@ -10,6 +10,7 @@ $(function() inspectorList.on('click', 'div.EventItem', function() { $(this).remove(); + //--inspectorCounter; }) .on('mouseenter', 'div.EventItem.success', function() { @@ -49,13 +50,14 @@ function EventInspector_ShowMsg(text, type) var MsgDiv = inspectorList.append('<div class="EventItem '+ type +'">' + text + '</div>').children().last(); setTimeout( function(){ + --inspectorCounter; MsgDiv.animate( {opacity: 0}, 1000, function() { $(this).remove(); - --inspectorCounter; + } ); }, -- GitLab