mirror of
https://github.com/marcogll/soul23_placeholder_site_server.git
synced 2026-01-13 13:25:18 +00:00
feat: Add initial project structure with HTML, CSS, JavaScript libraries, and image assets.
This commit is contained in:
26
js/modules/enhanced-modals.js
Executable file
26
js/modules/enhanced-modals.js
Executable file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
Enhanced Bootstrap Modals
|
||||
https://mdbootstrap.com
|
||||
office@mdbootstrap.com
|
||||
*/
|
||||
|
||||
$('body').on('shown.bs.modal', '.modal', function() {
|
||||
if($('.modal-backdrop').length) {
|
||||
} else {
|
||||
|
||||
$modal_dialog = $(this).children('.modal-dialog')
|
||||
|
||||
if($modal_dialog.hasClass('modal-side')) {
|
||||
$(this).addClass('modal-scrolling');
|
||||
$('body').addClass('scrollable');
|
||||
}
|
||||
|
||||
if($modal_dialog.hasClass('modal-frame')) {
|
||||
$(this).addClass('modal-content-clickable');
|
||||
$('body').addClass('scrollable');
|
||||
}
|
||||
}
|
||||
});
|
||||
$('body').on('hidden.bs.modal', '.modal', function() {
|
||||
$('body').removeClass('scrollable');
|
||||
});
|
||||
Reference in New Issue
Block a user