1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Fixing autocompletion + PHPDoc

This commit is contained in:
Tim Düsterhus 2012-04-30 21:23:57 +02:00
parent bdf019b332
commit 040189ffab
2 changed files with 7 additions and 2 deletions

View File

@ -86,7 +86,7 @@ window.console ?=
# None found -> return firstChars
# otherwise return the user at the current offset
return if users.length is 0 then firstChars else users[offset % users.length]
return if users.length is 0 then firstChars else users[offset % users.length] + ', '
###
# Binds all the events needed for Tims Chat.
###
@ -141,7 +141,7 @@ window.console ?=
return if firstChars.length is 0
# Insert name and increment offset
$('#timsChatInput').val(@autocompleteValue.substring(0, @autocompleteValue.lastIndexOf(' ') + 1) + @autocomplete(firstChars) + ', ')
$('#timsChatInput').val(@autocompleteValue.substring(0, @autocompleteValue.lastIndexOf(' ') + 1) + @autocomplete(firstChars))
@autocompleteOffset++
else
@autocompleteOffset = 0

View File

@ -53,6 +53,11 @@ public function __construct(\wcf\system\chat\command\CommandHandler $commandHand
$this->didInit();
}
/**
* Fetches the session-databaseobject for the specified user.
*
* @return \wcf\data\session\Session
*/
public function fetchSession(User $user) {
$sql = "SELECT
*