From 0421575c56186f9ad5aaf7c796068e29c837235e Mon Sep 17 00:00:00 2001 From: PavelBegunkov <asml.Silence@gmail.com> Date: Tue, 23 Sep 2014 19:23:06 +0400 Subject: [PATCH] fix --- ~dev_rating/media/js/event_inspector/event_inspector.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/~dev_rating/media/js/event_inspector/event_inspector.js b/~dev_rating/media/js/event_inspector/event_inspector.js index b2155de03..97f46314f 100644 --- a/~dev_rating/media/js/event_inspector/event_inspector.js +++ b/~dev_rating/media/js/event_inspector/event_inspector.js @@ -10,7 +10,6 @@ $(function() inspectorList.on('click', 'div.EventItem', function() { $(this).remove(); - --inspectorCounter; }) .on('mouseenter', 'div.EventItem.success', function() { @@ -50,11 +49,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();} + function() + { + $(this).remove(); + --inspectorCounter; + } ); }, 4000 -- GitLab