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
This commit is contained in:
silver%warwickcompsoc.co.uk 2005-12-09 14:06:54 +00:00
parent ba53240d96
commit cfdb896c41

View File

@ -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" }],
["-"],