forked from ScoDoc/ScoDoc
ajout no_sidebar dans template sco_page fix #973
This commit is contained in:
parent
f136b80c84
commit
514e9e4c83
@ -76,6 +76,8 @@
|
|||||||
<script src="{{scu.STATIC_DIR}}/js/etud_info.js"></script>
|
<script src="{{scu.STATIC_DIR}}/js/etud_info.js"></script>
|
||||||
<script src="{{scu.STATIC_DIR}}/DataTables/datatables.min.js"></script>
|
<script src="{{scu.STATIC_DIR}}/DataTables/datatables.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
let no_sidebar = {{ 'true' if no_sidebar else 'false' }};
|
||||||
|
|
||||||
window.onload = function () {
|
window.onload = function () {
|
||||||
if (document.getElementById('gtrcontent')) {
|
if (document.getElementById('gtrcontent')) {
|
||||||
enableTooltips("gtrcontent");
|
enableTooltips("gtrcontent");
|
||||||
@ -87,6 +89,10 @@
|
|||||||
document.getElementById("logo-scodoc").addEventListener("click", function () {
|
document.getElementById("logo-scodoc").addEventListener("click", function () {
|
||||||
toggleSidebarOffCanvas();
|
toggleSidebarOffCanvas();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (no_sidebar) {
|
||||||
|
toggleSidebar();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
const SCO_URL = "{{ url_for('scolar.index_html', scodoc_dept=g.scodoc_dept) }}";
|
const SCO_URL = "{{ url_for('scolar.index_html', scodoc_dept=g.scodoc_dept) }}";
|
||||||
function toggleSidebar() {
|
function toggleSidebar() {
|
||||||
|
Loading…
Reference in New Issue
Block a user