From cfdb896c41ef174b4d3422cbbbc84edc63f37524 Mon Sep 17 00:00:00 2001 From: "silver%warwickcompsoc.co.uk" Date: Fri, 9 Dec 2005 14:06:54 +0000 Subject: [PATCH] Bug 319589 - Use cx.network to get away status (for the menu), so it actually works on views that below to the network as well as the network view itself. ChatZilla only. r=samuel git-svn-id: svn://10.0.0.236/trunk@185829 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/irc/xul/content/menus.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mozilla/extensions/irc/xul/content/menus.js b/mozilla/extensions/irc/xul/content/menus.js index 3def51a8f5a..bb4f1339662 100644 --- a/mozilla/extensions/irc/xul/content/menus.js +++ b/mozilla/extensions/irc/xul/content/menus.js @@ -387,8 +387,7 @@ function initMenus() var net = "cx.network"; var netAway = "cx.network.prefs['away']"; - var netAwayIsDef = "(cx.network.prefs['away'] == '" + MSG_AWAY_DEFAULT + - "') and " + netAway; + var awayChecked = "cx.network and (cx.network.prefs.away == item.message)"; client.menuSpecs["mainmenu:nickname"] = { label: client.prefs["nickname"], @@ -400,7 +399,7 @@ function initMenus() ["-"], ["back", {type: "checkbox", checkedif: net + " and !" + netAway}], ["away", {type: "checkbox", - checkedif: "cx.sourceObject.prefs.away == item.message", + checkedif: awayChecked, repeatfor: "client.awayMsgs", repeatmap: "cx.reason = item.message" }], ["-"],