mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
9 lines
327 B
JavaScript
9 lines
327 B
JavaScript
$('.remote').on('show.bs.modal', function (e) {
|
|
if (typeof e.relatedTarget !== "undefined") {
|
|
$(this).find('.modal-content').load(e.relatedTarget.href, function () {
|
|
const event = new Event('custom.modal.loaded');
|
|
$(this).closest('.modal').get(0).dispatchEvent(event);
|
|
});
|
|
}
|
|
});
|