Constructor
Methods
addInfoLink($div)
#
Adds the info link to the panel.
Parameters:
Name | Type | Description |
---|---|---|
$div |
jQuery | The panel to which we're adding the link. |
- Source:
addText($container, msgs)
#
Adds text to a dialog.
Parameters:
- Source:
closeDialog([e])
#
Closes the options dialog.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
e |
Event |
optional |
Event object when the close action is caused by a user action, as opposed to closing the window or something. |
- Source:
createActionPane(divClass, propName, smsg, msgs, enabled)
#
Creates an action pane.
Parameters:
Name | Type | Description |
---|---|---|
divClass |
string | Class applied to main div. |
propName |
string | Name of the property on this object to which we'll assign the div. |
smsg |
string | Message for the submit button. |
msgs |
string | See #addText |
enabled |
boolean | Whether this dialog is an enable one. |
- Source:
createConfirmationPane(divClass, propName, msgs)
#
Creates a confirmation pane.
Parameters:
Name | Type | Description |
---|---|---|
divClass |
string | Class applied to main div. |
propName |
string | Name of the property on this object to which we'll assign the div. |
msgs |
string | See #addText |
- Source:
hideDivs()
#
Hides all of the divs.
- Source:
initDisableConfirmation()
#
Initialises the disable confirmation pane.
- Source:
initDisableDiv()
#
Initialises the disable action pane.
- Source:
initEnableConfirmation()
#
Initialises the enable confirmation pane.
- Source:
initEnableDiv()
#
Initialises the enable action pane.
- Source:
initPanel()
#
Initialises UI elements.
- Source:
makeButtons($container, smsg, enabled)
#
Creates buttons for the dialog.
Parameters:
Name | Type | Description |
---|---|---|
$container |
jQuery | |
smsg |
string | Message for the submit button. |
enabled |
boolean | Whether the viewer is enabled after this dialog is submitted. |
- Source:
makeCancelButton($submitDiv) → {jQuery}
#
makeSubmitButton($submitDiv, msg, enabled) → {jQuery}
#
Makes a submit button for one of the panels.
Parameters:
Name | Type | Description |
---|---|---|
$submitDiv |
jQuery | The div for the buttons in the dialog. |
msg |
string | The string to put in the button. |
enabled |
boolean | Whether to turn the viewer on or off when this button is pressed. |
- Source:
Returns:
Submit button
- Type
- jQuery
openDialog()
#
Opens a dialog with information about file reuse.
- Source:
showDisableConfirmation()
#
Shows the confirmation div for the disable action.
- Source:
showEnableConfirmation()
#
Shows the confirmation div for the enable action.
- Source:
Events
mmv-options-closed()
#
Fired when the dialog is closed.
- Source:
mmv-options-opened()
#
Fired when the dialog is opened.
- Source: