From 358ed6397d001d71524f406e63588f5b0ebad2a5 Mon Sep 17 00:00:00 2001 From: Anton Baranov Date: Sat, 7 Mar 2020 08:08:25 +0200 Subject: [PATCH] - [=] fix navbar and modal conflict --- compiler.php | 2 +- src/ifm.js | 3 ++- src/style.css | 9 --------- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/compiler.php b/compiler.php index 2aefe69..cd6fdbb 100755 --- a/compiler.php +++ b/compiler.php @@ -10,7 +10,7 @@ chdir( realpath( dirname( __FILE__ ) ) ); // output files and common attrs define( "IFM_CDN", true ); -define( "IFM_VERSION", "v2.6.0" ); +define( "IFM_VERSION", "v2.6.0" ); define( "IFM_STANDALONE", "dist/ifm.php" ); define( "IFM_STANDALONE_GZ", "dist/ifm.min.php" ); define( "IFM_LIB", "dist/libifm.php" ); diff --git a/src/ifm.js b/src/ifm.js index 2d08920..58cca8b 100644 --- a/src/ifm.js +++ b/src/ifm.js @@ -33,7 +33,7 @@ function IFM(params) { this.showModal = function( content, options ) { options = options || {}; var modal = document.createElement( 'div' ); - modal.classList.add( 'modal', 'fade' ); + modal.classList.add( 'modal' ); modal.id = 'ifmmodal'; modal.attributes.role = 'dialog'; var modalDialog = document.createElement( 'div' ); @@ -45,6 +45,7 @@ function IFM(params) { modalContent.innerHTML = content; modalDialog.appendChild( modalContent ); modal.appendChild( modalDialog ); + console.log(modal); document.body.appendChild( modal ); // For this we have to use jquery, because bootstrap modals depend on them. Also the bs.modal diff --git a/src/style.css b/src/style.css index 223b528..4d5fd9a 100644 --- a/src/style.css +++ b/src/style.css @@ -1,15 +1,6 @@ body { padding-top: 70px; - overflow-y: scroll !important; } - -/* - * This prevents the content from moving when opening a modal - */ -.modal-open { - padding-right: 0 !important; -} - .icon { font-size: 14pt; }