[Phpfreechat-svn] SF.net SVN: phpfreechat: [818] trunk/src/client/pfcclient.js
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-10-04 09:34:59
|
Revision: 818 http://svn.sourceforge.net/phpfreechat/?rev=818&view=rev Author: kerphi Date: 2006-10-04 02:34:53 -0700 (Wed, 04 Oct 2006) Log Message: ----------- [en] Bug fix: complete nicknames function was broken [15min] [fr] Bug fix : la completion des pseudonymes ne fonctionnait plus [15min] Modified Paths: -------------- trunk/src/client/pfcclient.js Modified: trunk/src/client/pfcclient.js =================================================================== --- trunk/src/client/pfcclient.js 2006-10-04 09:28:29 UTC (rev 817) +++ trunk/src/client/pfcclient.js 2006-10-04 09:34:53 UTC (rev 818) @@ -69,7 +69,9 @@ if (pfc_notify_window) this.detectactivity.onunactivate = this.gui.unnotifyWindow.bindAsEventListener(this.gui); /* the events callbacks */ - Event.observe(this.el_words, 'keypress', this.callbackWords_OnKeypress.bindAsEventListener(this), false); + this.el_words.onkeypress = this.callbackWords_OnKeypress.bindAsEventListener(this); +// don't use this line because when doing completeNick the "return false" doesn't work (focus is lost) +// Event.observe(this.el_words, 'keypress', this.callbackWords_OnKeypress.bindAsEventListener(this), false); Event.observe(this.el_words, 'keydown', this.callbackWords_OnKeydown.bindAsEventListener(this), false); Event.observe(this.el_words, 'focus', this.callbackWords_OnFocus.bindAsEventListener(this), false); Event.observe(this.el_handle, 'keydown', this.callbackHandle_OnKeydown.bindAsEventListener(this), false); @@ -535,7 +537,7 @@ if (nick_src != '') { var tabid = this.gui.getTabId(); - var n_list = this.nicklist[tabid]; + var n_list = this.chanmeta[tabid]['users']['nick']; for (var i=0; i<n_list.length; i++) { var nick = n_list[i]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |