- [=] fix navbar and modal conflict

This commit is contained in:
Anton Baranov 2020-03-07 08:08:25 +02:00
parent f176e77be1
commit 358ed6397d
No known key found for this signature in database
GPG Key ID: E0E533E6E41387C2
3 changed files with 3 additions and 11 deletions

View File

@ -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", "<a href='https://github.com/cryol/ifm/tree/2.6.0' target=_blank>v2.6.0</a>" );
define( "IFM_STANDALONE", "dist/ifm.php" );
define( "IFM_STANDALONE_GZ", "dist/ifm.min.php" );
define( "IFM_LIB", "dist/libifm.php" );

View File

@ -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

View File

@ -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;
}