Permalink
Browse files

fix a slight bug which lead to display "undefined" as status message …

…in status.xul
  • Loading branch information...
1 parent c6769c7 commit 6c124c58fccc990bfa5b5fa0823b8518c7ce06f1 François-Xavier Deltombe committed Sep 1, 2011
Showing with 1 addition and 4 deletions.
  1. +1 −4 chrome/oneteam/content/status.xul
@@ -24,9 +24,6 @@
typeControl = document.getElementById("presenceType");
textControl = document.getElementById("statusText");
- if (account.currentPresence.status)
- textControl.value = account.currentPresence.status;
-
messages = account.cache.getValue("statusMessages");
if (messages) {
@@ -42,7 +39,7 @@
listControl.appendItem(messages[i], messages[i]);
listControl.selectedIndex = 0;
- textControl.value = account.userPresence.status;
+ textControl.value = account.userPresence.status || "";
typeControl.selectedIndex = 0;
var items = typeControl.firstChild.childNodes;

0 comments on commit 6c124c5

Please sign in to comment.