diff --git a/~dev_rating/media/js/event_inspector/event_inspector.js b/~dev_rating/media/js/event_inspector/event_inspector.js index b2155de030fc9e1396abf34c49b13ea11816af8a..97f46314f6683b8ce330706a718136602ab21d97 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