- Source:
Methods
(static) fileSelected(jid, msg, file)
    Callback for file selector.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| jid | String | |
| msg | jQuery | jQuery object of temporary file message | 
| file | File | selected file | 
- Source:
(static) formatByte(byte) → {String}
    Make bytes more human readable.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| byte | Integer | 
- Source:
Returns:
- Type
- String
(static) selectResource(bid, success_cb, error_cb)
    Show select dialog for file transfer capable resources.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| bid | String | |
| success_cb | function | Called if user selects resource | 
| error_cb | function | Called if no resource was found or selected | 
- Source:
(static) showFileSelection(jid)
    Show file selector.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| jid | String | 
- Source:
(static) startGuiAction(jid)
    Start file transfer dialog.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| jid | String | 
- Source:
(static) updateIcons(bid)
    Enable/disable icons for file transfer.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| bid | String | 
- Source: