mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
NEW Include the tag editor of page as a popup into website editor
This commit is contained in:
@@ -1130,4 +1130,15 @@ $(document).ready(function() {
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
// Force to hide menus when page is inside an iFrame
|
||||
$(document).ready(function() {
|
||||
if (window.location !== window.parent.location ) {
|
||||
console.log("Page is detected to be into an iframe, we hide by CSS the menus");
|
||||
// The page is in an iframe
|
||||
jQuery(".side-nav-vert, .side-nav").hide();
|
||||
jQuery(".id-container").css('width', '100%');
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
// End of lib_head.js.php
|
||||
|
||||
Reference in New Issue
Block a user