this.data
Deletes a cookie with the given name
self.deleteCookie = function( name )
Requests disco info of a room.
Disco: function( roomJid )
Sets informations to rooms according to the disco info received.
Disco: function( msg )
Leave all rooms and disconnect
self.disconnect = function()
Replaces text-emoticons with their image equivalent.
emotify: function( text )
Escapes a text using a jQuery function (like htmlspecialchars in PHP)
escape: function( text )
Escapes a jid (node & resource get escaped)
self.escapeJid = function( jid )
Fit tab size according to window size
fitTabs: function()
Fix IE7 not redrawing under some circumstances.
self.forceRedraw = function( elem )
Get user from roster
this.get = function( jid )
Gets user affiliation
this.getAffiliation = function()
Get all items
this.getAll = function()
Gets Strophe connection
self.getConnection = function()
Returns the cookie value if there’s one with this name, otherwise returns undefined
self.getCookie = function( name )
Get current container & roomJid in an object.
self.getCurrent = function()
Retrieve custom data
this.getCustomData = function()
Escapes the user’s jid (node & resource get escaped)
this.getEscapedJid = function()
Returns local variable `ie` which you can use to detect which IE version is available.
self.getIeVersion = function()
Get existing ignore privacy list when connecting.
GetIgnoreList: function()
Get room jid
this.getJid = function()
Gets an unescaped user jid
this.getJid = function()
On anonymous login, initially we don’t know the jid and as a result, Candy.Core._user doesn’t have a jid.
GetJidIfAnonymous: function()
Extends initialMenuLinks with menu links gathered from candy:view.roster.contextmenu
getMenuLinks: function( roomJid, user, elem )
Get room name
this.getName = function()
Gets user nick
this.getNick = function()
Gets options
self.getOptions = function()
Gets options
self.getOptions = function()
Get the chat room pane or a subPane of it (if subPane is specified)
getPane: function( roomJid, subPane )
Fetches the window width and element width and checks if specified position + element width is bigger than the window width.
self.getPosLeftAccordingToWindowBounds = function( elem, pos )
Fetches the window height and element height and checks if specified position + element height is bigger than the window height.
self.getPosTopAccordingToWindowBounds = function( elem, pos )
Returns the privacy list of the listname of the param.
this.getPrivacyList = function( list )
Gets user role
this.getRole = function()
Gets a specific room
self.getRoom = function( roomJid )
Gets all joined rooms
self.getRooms = function()
Get roster
this.getRoster = function()
Get the status set by Strophe.
self.getStropheStatus = function()
Get tab by JID.
getTab: function( roomJid )
Gets current user
self.getUser = function()
Get current local user
this.getUser = function()
Get the current user in the room specified with the jid
getUser: function( roomJid )
Checks if window has focus
hasFocus: function()
Hide modal window
hide: function( callback )
Hide toolbar.
hide: function()
Hide the close button
hideCloseControl: function()
Hide loading spinner
hideSpinner: function()
Checks if the user is already ignoring the target user, if yes: unignore him, if no: ignore him.
IgnoreUnignore: function( userJid )
Ignore specified user and add the ignore icon to the roster item of the user
ignoreUser: function( roomJid, userJid )
Increase unread message count in a tab by one.
increaseUnreadMessages: function( roomJid )
Increases unread message count in window title by one.
increaseUnreadMessages: function()
Display info message.
infoMessage: function( roomJid, subject, message )
Init view & core
self.init = function( service, options )
Initialize Core.
self.init = function( service, options )
Initialize chat view (setup DOM, register handlers & observers)
self.init = function( container, options )
Initialize context menu and setup mouseleave handler.
init: function()
Initialize a new room and inserts the room html into the DOM
init: function( roomJid, roomName, roomType )
Register handler and enable or disable sound and status messages.
init: function()
initialMenuLinks: function()
Sends an invite stanza to multiple JIDs
Invite: function( roomJid, invitees, reason, password )
Returns true if Candy.Core.connect was first called with a domain instead of a jid as the first param.
self.isAnonymousConnection = function()
IE7 doesn’t work with jQuery.isEmptyObject (<=1.5.1), workaround.
self.isEmptyObject = function( obj )
Tests if this user ignores the user provided by jid.
this.isInPrivacyList = function( list, jid )
Check if user is moderator.
this.isModerator = function()
Roster items
this.items