diff --git a/~dev_rating/media/js/event_inspector/event_inspector.js b/~dev_rating/media/js/event_inspector/event_inspector.js index 97f46314f6683b8ce330706a718136602ab21d97..47307b73123fe4ab0cb390fe507659a2b745e044 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; + } ); },