Properties
$downArrow
#
Properties:
| Name | Type | Description |
|---|---|---|
$downArrow |
jQuery | Tip of the dialog pointing to $openButton. Called downArrow for historical reasons although it does not point down anymore. |
- Source:
$openButton
#
Properties:
| Name | Type | Description |
|---|---|---|
$openButton |
jQuery | The click target which opens the dialog. |
- Source:
eventPrefix
#
Properties:
| Name | Type | Description |
|---|---|---|
eventPrefix |
string | Prefix specific to the class to be applied to events. |
- Source:
isOpen
#
Properties:
| Name | Type | Description |
|---|---|---|
isOpen |
boolean | Whether or not the dialog is open. |
- Source:
Methods
clearWarning()
#
Removes the warning ribbon.
- Source:
closeDialog()
#
Closes a dialog.
- Source:
empty()
#
- Source:
getImageWarnings(image) → {Array.<string>}
#
handleOpenCloseClick(openEvent, e) → {boolean}
#
Handles click on link that opens/closes the dialog.
Parameters:
| Name | Type | Description |
|---|---|---|
openEvent |
jQuery.Event | Event object for the mmv-$dialog-open event. |
e |
jQuery.Event | Event object for the click event. |
Returns:
False to cancel the default event
- Type
- boolean
- Source:
openDialog()
#
Opens a dialog.
- Source:
setWarning(content)
#
Displays a warning ribbon.
Parameters:
| Name | Type | Description |
|---|---|---|
content |
string | Content of the warning (can be HTML, setWarning does no escaping). |
- Source:
showImageWarnings(image)
#
startListeningToOutsideClick()
#
Sets up the event handler which closes the dialog when the user clicks outside.
- Source:
stopListeningToOutsideClick()
#
Removes the event handler set up by startListeningToOutsideClick().
- Source:
toggleDialog([e])
#
Toggles the open state on the dialog.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
e |
jQuery.Event |
optional |
Event object when the close action is caused by a user action, as opposed to closing the window or something. |
- Source:
unattach()
#
Clears listeners.
- Source: