Skip to content
Snippets Groups Projects
Commit 8eb8ffbf authored by Chris Lawton's avatar Chris Lawton
Browse files

move close select2 dropdowns in a modal logic in to fancybox partial

parent e8145c9c
No related branches found
No related tags found
No related merge requests found
......@@ -9,4 +9,10 @@ export default () => {
$('.django-select2-checkboxes').select2('close');
}
});
// Close any open select2 dropdowns when inside a modal
$('.modal').click((e) => {
if(e.target.classList.contains('select2-selection__rendered')) return;
$('.django-select2-checkboxes').select2('close');
});
};
......@@ -41,12 +41,6 @@ import fancyboxGlobal from './components/fancybox-global';
// Activity feed functionality
activityFeed();
// Close any open select2 dropdowns when inside a modal
$('.modal').click((e) => {
if(e.target.classList.contains('select2-selection__rendered')) return;
$('.django-select2-checkboxes').select2('close');
});
// Add <tr> toggle arrow
$('.tr--parent td.title').prepend('<span class="js-tr-toggle arrow"></span>');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment