reverted my wrong change 9bb9f59a and reinserted setting chatAnimationIsStarted=true

This commit is contained in:
Wikinaut 2011-11-27 17:59:33 +01:00
parent 9bb9f59a29
commit 0a1a869729

View file

@ -21,6 +21,7 @@ var chat = (function()
var self = { var self = {
show: function () show: function ()
{ if (chatAnimationIsStarted) return; { if (chatAnimationIsStarted) return;
chatAnimationIsStarted = true;
$("#chaticon").hide("slide", { $("#chaticon").hide("slide", {
direction: "down" direction: "down"
}, 500, function () }, 500, function ()
@ -49,6 +50,7 @@ var chat = (function()
hide: function () hide: function ()
{ {
if (chatAnimationIsStarted) return; if (chatAnimationIsStarted) return;
chatAnimationIsStarted = true;
$("#chatcounter").text("0"); $("#chatcounter").text("0");
$("#chatbox").hide("slide", { direction: "down" }, 750, function() $("#chatbox").hide("slide", { direction: "down" }, 750, function()
{ {