Bug 299458 - Add window ID to preferences window, call updateUsers instead of faking with removeUsers+addUsers and sort nicknames with prefixes we have no image for properly.

ChatZilla only.
r=samuel
This commit is contained in:
silver%warwickcompsoc.co.uk 2006-01-20 17:17:16 +00:00
Родитель 96398ce85d
Коммит 5c886e9864
3 изменённых файлов: 3 добавлений и 8 удалений

Просмотреть файл

@ -43,6 +43,7 @@
<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
windowtype="irc:chatzilla:config"
id="chatzilla-window"
buttons="accept,cancel,extra1"
extra1Label="&dialog.apply;"
ondialogaccept="gPrefWindow.onOK();"

Просмотреть файл

@ -2391,13 +2391,7 @@ function my_cnick (e)
}
e.user.updateGraphResource();
//this.updateUsers([e.user]);
/* updateUsers isn't clever enough (currently) to handle a nick change, so
* we fake the user leaving (with the old nick) and coming back (with the
* new nick).
*/
this.removeUsers([e.server.addUser(e.oldNick)]);
this.addUsers([e.user]);
this.updateUsers([e.user]);
if (client.currentObject == this)
updateUserList();
}

Просмотреть файл

@ -2859,7 +2859,7 @@ function reSortUserlist(node)
if (client.prefs["sortUsersByMode"])
sortResource = RES_PFX + "sortname";
else
sortResource = RES_PFX + "nick";
sortResource = RES_PFX + "unicodeName";
try
{