mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Fixing autocompletion + PHPDoc
This commit is contained in:
parent
bdf019b332
commit
040189ffab
@ -86,7 +86,7 @@ window.console ?=
|
|||||||
|
|
||||||
# None found -> return firstChars
|
# None found -> return firstChars
|
||||||
# otherwise return the user at the current offset
|
# 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.
|
# Binds all the events needed for Tims Chat.
|
||||||
###
|
###
|
||||||
@ -141,7 +141,7 @@ window.console ?=
|
|||||||
return if firstChars.length is 0
|
return if firstChars.length is 0
|
||||||
|
|
||||||
# Insert name and increment offset
|
# 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++
|
@autocompleteOffset++
|
||||||
else
|
else
|
||||||
@autocompleteOffset = 0
|
@autocompleteOffset = 0
|
||||||
|
@ -53,6 +53,11 @@ public function __construct(\wcf\system\chat\command\CommandHandler $commandHand
|
|||||||
$this->didInit();
|
$this->didInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fetches the session-databaseobject for the specified user.
|
||||||
|
*
|
||||||
|
* @return \wcf\data\session\Session
|
||||||
|
*/
|
||||||
public function fetchSession(User $user) {
|
public function fetchSession(User $user) {
|
||||||
$sql = "SELECT
|
$sql = "SELECT
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user