Expand all

ReuseDialog

Represents the file reuse dialog and the link to open it.

Constructor

new ReuseDialog($container, $openButton) #

Parameters:

Name Type Description
$container jQuery

the element to which the dialog will be appended

$openButton jQuery

the button which opens the dialog. Only used for positioning.

Source:

Methods

attach() #

Registers listeners.

Source:
Registers listeners.

closeDialog() #

Closes the reuse dialog.

Source:
Closes the reuse dialog.

openDialog() #

Opens a dialog with information about file reuse.

Source:
Opens a dialog with information about file reuse.

set(image, caption, alt) #

Sets data needed by contained panes and makes dialog launch link visible.

Parameters:

Name Type Description
image ImageModel
caption string
alt string
Source:
Sets data needed by contained panes and makes dialog launch link visible.

Events

mmv-reuse-closed() #

Fired when the dialog is closed.

Source:
Fired when the dialog is closed.

mmv-reuse-opened() #

Fired when the dialog is opened.

Source:
Fired when the dialog is opened.