Elgg
Version 1.9
|
Go to the source code of this file.
Functions | |
elgg | provide ('elgg.ui') |
elgg | register_hook_handler ('init', 'system', elgg.ui.init) |
elgg ui | registerTogglableMenuItems ('add-friend', 'remove-friend') |
Variables | |
elgg ui | init |
elgg ui | toggles |
Toggles an element based on clicking a separate element. More... | |
elgg ui | popupOpen |
Pops up an element based on clicking a separate element. More... | |
elgg ui | popupClose |
Catches clicks that aren't in a popup and closes all popups. More... | |
elgg ui | toggleMenu |
Toggles a child menu when the parent is clicked. More... | |
elgg ui | initHoverMenu |
Initialize the hover menu. More... | |
elgg ui | requiresConfirmation |
Calls a confirm() and prevents default if denied. More... | |
elgg ui | loginHandler |
Repositions the login popup. More... | |
elgg ui | initDatePicker |
Initialize the date picker. More... | |
elgg ui | registerTogglableMenuItems |
This function registers two menu items that are actions that are the opposite of each other and ajaxifies them. More... | |
elgg ui | toggleMenuItems |
elgg ui | initAccessInputs |
Initialize input/access for dynamic display of members only warning. More... | |
elgg provide | ( | 'elgg.ui' | ) |
elgg ui initAccessInputs |
Initialize input/access for dynamic display of members only warning.
If a select.elgg-input-access is accompanied by a note (.elgg-input-access-membersonly), then hide the note when the select value is PRIVATE or group members.
elgg ui initDatePicker |
Initialize the date picker.
Uses the class .elgg-input-date as the selector.
If the class .elgg-input-timestamp is set on the input element, the onSelect method converts the date text to a unix timestamp in seconds. That value is stored in a hidden element indicated by the id on the input field.
elgg ui initHoverMenu |
elgg ui loginHandler |
Repositions the login popup.
{String} | hook 'getOptions' |
{String} | type 'ui.popup' |
{Object} | params An array of info about the target and source. |
{Object} | options Options to pass to |
elgg ui popupClose |
elgg ui popupOpen |
Pops up an element based on clicking a separate element.
Set the rel="popup" on the popper and set the href to target the item you want to toggle () This function emits the getOptions, ui.popup hook that plugins can register for to provide custom positioning for elements. The handler is passed the following params: targetSelector: The selector used to find the popup target: The popup jQuery element as found by the selector source: The jquery element whose click event initiated a popup. The return value of the function is used as the options object to .position(). Handles can also return false to abort the default behvior and override it with their own. {Object} event void
elgg ui registerTogglableMenuItems |
This function registers two menu items that are actions that are the opposite of each other and ajaxifies them.
E.g. like/unlike, friend/unfriend, ban/unban, etc.
Note the menu item names must be given in their normalized form. So if the name is remove_friend, you should call this function with "remove-friend" instead.
elgg ui requiresConfirmation |
Calls a confirm() and prevents default if denied.
{Object} | e |
elgg ui toggleMenu |
elgg ui toggles |
Toggles an element based on clicking a separate element.
Use rel="toggle" on the toggler element Set the href to target the item you want to toggle () {Object} event void