S | |
scrollToBottom, Candy. | |
Services, Candy. | |
setActiveTab, Candy. | |
setAffiliation, Candy. | |
setCookie, Candy.Util | |
setCustomData, Candy. | |
setEmoticonPath, Candy. | |
setFocusToForm, Candy. | |
SetIgnoreListActive, Candy. | |
setJid, Candy. | |
setName, Candy. | |
setNick, Candy. | |
SetNickname, Candy. | |
setPreviousNick, Candy. | |
setPrivacyLists, Candy. | |
setRole, Candy. | |
setRoster, Candy. | |
setStatus, Candy. | |
setStropheStatus, Candy.Core | |
setSubject, Candy. | |
SetSubject, Candy. | |
setUser | |
show | |
showCloseControl, Candy. | |
showEmoticonsMenu, Candy. | |
showEnterPasswordForm, Candy. | |
showError, Candy. | |
showJoinAnimation, Candy. | |
showLoginForm, Candy. | |
showNicknameConflictForm, Candy. | |
showSpinner, Candy. | |
sliceMessagePane, Candy. | |
submit, Candy. | |
T | |
tabClick, Candy. | |
tabClose, Candy. | |
U | |
unescapeJid, Candy.Util | |
unignoreUser, Candy. | |
update | |
UpdatePrivacyList, Candy. | |
updateUserCount, Candy. | |
UserAction, Candy. | |
userClick, Candy. | |
V | |
Version |
Scroll to bottom wrapper for onScrollToBottom to be able to disable it by overwriting the function.
scrollToBottom: function( roomJid )
Sends a request for disco items
Services: function()
Set the active tab.
setActiveTab: function( roomJid )
Sets user affiliation
this.setAffiliation = function( affiliation )
Sets a new cookie
self.setCookie = function( name, value, lifetime_days )
Stores custom data
this.setCustomData = function( data )
Set emoticons location.
setEmoticonPath: function( path )
Set focus to the message input field within the message form.
setFocusToForm: function( roomJid )
Set ignore privacy list active
SetIgnoreListActive: function()
Sets a user’s jid
this.setJid = function( jid )
Set room name
this.setName = function( name )
Sets a user’s nick
this.setNick = function( nick )
Sets the supplied nickname for all rooms (if parameter “room” is not specified) or sets it only for the specified rooms
SetNickname: function( nickname, rooms )
If user has nickname changed, set previous nickname.
this.setPreviousNick = function( previousNick )
Sets privacy lists.
this.setPrivacyLists = function( lists )
Sets user role
this.setRole = function( role )
Set roster of room
this.setRoster = function( roster )
Set offline or online status for private rooms (when one of the participants leaves the room)
setStatus: function( roomJid, status )
Set the strophe status
self.setStropheStatus = function( status )
Called when someone changes the subject in the channel
setSubject: function( roomJid, subject )
Sets subject (topic) of a room.
SetSubject: function( roomJid, subject )
Set current user.
self.setUser = function( user )
Set user of this room.
this.setUser = function( user )
Sets or updates the current user in the specified room (called by Candy.View.Pane.Roster.update) and set specific informations (roles and affiliations) on the room tab (chat-pane).
setUser: function( roomJid, user )
Show context menu (positions it according to the window height/width)
show: function( elem, roomJid, user )
Show a message in the message pane
show: function( roomJid, name, message, xhtmlMessage, timestamp )
Display modal window
show: function( html, showCloseControl, showSpinner )
Show a specific room and hides the other rooms (if there are any)
show: function( roomJid )
Show toolbar.
show: function()
Show a tooltip on event.currentTarget with content specified or content within the target’s attribute data-tooltip.
show: function( event, content )
Show a close button
showCloseControl: function()
Shows the special emoticons menu
showEmoticonsMenu: function( elem )
Shows a form for entering room password
showEnterPasswordForm: function( roomJid, roomName, message )
Show modal containing error message
showError: function( message, replacements )
Shows join animation if needed
showJoinAnimation: function( user, userId, roomId, roomJid, currentUser )
Show the login form modal
showLoginForm: function( message, presetJid )
Shows a form indicating that the nickname is already taken and for chosing a new nickname
showNicknameConflictForm: function( roomJid )
Show loading spinner
showSpinner: function()
Slices the message pane after the max amount of messages specified in the Candy View options (limit setting).
sliceMessagePane: function( roomJid )
on submit handler for message field sends the message to the server and if it’s a private chat, shows the message immediately because the server doesn’t send back those message.
submit: function( event )
Tab click event: show the room associated with the tab and stops the event from doing the default.
tabClick: function( e )
Tab close (click) event: Leave the room (groupchat) or simply close the tab (chat).
tabClose: function()
Unescapes a jid (node & resource get unescaped)
self.unescapeJid = function( jid )
Unignore an ignored user and remove the ignore icon of the roster item.
unignoreUser: function( roomJid, userJid )
Every presence update gets dispatched from this method.
update: function( event, args )
Called by Candy.View.Observer.Presence.update to update the roster if needed.
update: function( roomJid, user, action, currentUser )
Update toolbar for specific room
update: function( roomJid )
Updates privacy list according to the privacylist in the currentUser
UpdatePrivacyList: function()
Kick or ban a user
UserAction: function( roomJid, userJid, type, reason )
Click handler for opening a private room
userClick: function()
Replies to a version request
Version: function( msg )
Responds to a version request
Version: function( msg )