From 35224562157c42e9120d1a7d35f1ed41b7b36cca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Qu=C3=A8ze?= Date: Fri, 17 Aug 2007 01:31:00 +0200 Subject: [PATCH] Fix to the protocol image animation to that it cleans the timer cleanly once the animation isn't displayed anymore. --- im/base/content/instantbird/account.xml | 3 ++- im/base/content/instantbird/accounts.js | 8 +++++++ im/base/content/instantbird/anim.xml | 28 +++++++++++++++++-------- 3 files changed, 29 insertions(+), 10 deletions(-) diff --git a/im/base/content/instantbird/account.xml b/im/base/content/instantbird/account.xml index 071ef55d2e..70ffbe3ccf 100644 --- a/im/base/content/instantbird/account.xml +++ b/im/base/content/instantbird/account.xml @@ -34,7 +34,8 @@ - + diff --git a/im/base/content/instantbird/accounts.js b/im/base/content/instantbird/accounts.js index c8410cd9e9..8ba5d1728d 100644 --- a/im/base/content/instantbird/accounts.js +++ b/im/base/content/instantbird/accounts.js @@ -85,6 +85,14 @@ var gAccountManager = { boolean attribute |deleting| to purpleIAccount? */ return; } + + /* handle protocol icon animation while connecting */ + var icon = document.getAnonymousElementByAttribute(elt, "anonid", "prplicon") + if (aTopic == "account-connecting") + icon.animate(); + else + icon.stop(); + elt.setAttribute("state", stateEvents[aTopic]); } }, diff --git a/im/base/content/instantbird/anim.xml b/im/base/content/instantbird/anim.xml index 0a4d049be7..f879dd9c65 100644 --- a/im/base/content/instantbird/anim.xml +++ b/im/base/content/instantbird/anim.xml @@ -11,15 +11,6 @@ - - - + + + + + + + +