mirror of
https://github.com/misterunknown/ifm.git
synced 2025-03-13 16:00:50 +01:00
- [=] fix navbar and modal conflict
This commit is contained in:
parent
f176e77be1
commit
358ed6397d
@ -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" );
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user