Namespace: roster

jsxc.gui.roster

Handle functions related to the gui of the roster
Source:

Members

(static) loaded

True if all items are loaded
Source:

(static) ready

True if roster is initialised
Source:

Methods

(static) _rename(bid, newname) → {undefined}

Rename buddy
Parameters:
Name Type Description
bid type
newname type new name of buddy
Source:
Returns:
Type
undefined

(static) add(bid)

Create roster item and add it to the roster
Parameters:
Name Type Description
bid String bar jid
Source:

(static) empty()

Shows a text with link to add a new buddy.
Source:

(static) init() → {undefined}

Init the roster skeleton
Source:
Returns:
Type
undefined

(static) insert(bid, li) → {undefined}

Insert roster item. First order: online > away > offline. Second order: alphabetical of the name
Parameters:
Name Type Description
bid type
li jquery roster item which should be insert
Source:
Returns:
Type
undefined

(static) noConnection()

Shows a text with link to a login box that no connection exists.
Source:

(static) purge(bid)

Removes buddy from roster and clean up
Parameters:
Name Type Description
bid String bar compatible jid
Source:

(static) remove(bid) → {JQueryObject}

Removes buddy from roster
Parameters:
Name Type Description
bid String bar jid
Source:
Returns:
Roster list element
Type
JQueryObject

(static) rename(bid) → {undefined}

Create input element for rename action
Parameters:
Name Type Description
bid type
Source:
Returns:
Type
undefined

(static) reorder(bid) → {undefined}

Initiate reorder of roster item
Parameters:
Name Type Description
bid type
Source:
Returns:
Type
undefined

(static) toggle(state)

Toogle complete roster
Parameters:
Name Type Description
state string Toggle to state
Source: