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()
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 Candy.View.Event.Roster.onContextMenu links and returns those.
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 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 )
initialMenuLinks: function()
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()
Translates a jid to a MD5-Id
self.jidToId = function( jid )
Requests disco of specified room and joins afterwards.
Join: function( roomJid, password )
Animates specified elementId on join
joinAnimation: function( elementId )
Leaves a room.
Leave: function( roomJid )
Leaves a room and cleans up related data and notifies view.
Leave: function( msg )
Leave animation for specified element id and removes the DOM element on completion.
leaveAnimation: function( elementId )
Replaces URLs with a HTML-link.
linkify: function( text )
Localizes ISO-8610 Date with the time/dateformat specified in the translation.
self.localizedTime = function( dateTime )
Overridden to do something useful if debug is set to true.
self.log = function()
Notify view that the login window should be displayed
self.Login = function( presetJid )