mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 17:54:44 +02:00
Add PR #107 so that panel.js triggers pw-panel-closed and pw-panel-opened events in JS
This commit is contained in:
@@ -383,6 +383,9 @@ var pwPanels = {
|
|||||||
$panel.find('iframe.pw-panel-content').remove();
|
$panel.find('iframe.pw-panel-content').remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// trigger panel-closed event
|
||||||
|
$(document).trigger('pw-panel-closed', $panel);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// open the panel
|
// open the panel
|
||||||
@@ -442,6 +445,9 @@ var pwPanels = {
|
|||||||
|
|
||||||
// indicate that this panel has been opened and is initialized
|
// indicate that this panel has been opened and is initialized
|
||||||
$panel.addClass('pw-panel-container-init');
|
$panel.addClass('pw-panel-container-init');
|
||||||
|
|
||||||
|
// trigger panel-opened event
|
||||||
|
$(document).trigger('pw-panel-opened', $panel);
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
2
wire/modules/Jquery/JqueryUI/panel.min.js
vendored
2
wire/modules/Jquery/JqueryUI/panel.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user