Rev 128 | Rev 150 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 128 | Rev 137 | ||
---|---|---|---|
Line 427... | Line 427... | ||
427 | "staticlinkHREF":"index.php?goto="+encodeURIComponent(goto), |
427 | "staticlinkHREF":"index.php?goto="+encodeURIComponent(goto), |
428 | }, $('#real_title').html(), "?goto="+encodeURIComponent(goto)); |
428 | }, $('#real_title').html(), "?goto="+encodeURIComponent(goto)); |
429 | 429 | ||
430 | if (goto != null) data.instance.select_node([goto]); |
430 | if (goto != null) data.instance.select_node([goto]); |
431 | 431 | ||
- | 432 | setTimeout(glayoutWorkaroundA, 100); |
|
432 | glayout.resizeAll(); // Required, otherwise the design breaks sometimes... Bug in Chrome? |
433 | setTimeout(glayoutWorkaroundB, 100); |
433 | }) |
434 | }) |
434 | .on('select_node.jstree', function (node, selected, event) { |
435 | .on('select_node.jstree', function (node, selected, event) { |
435 | mobileNavClose(); |
436 | mobileNavClose(); |
436 | 437 | ||
437 | var id = selected.node.id; |
438 | var id = selected.node.id; |
438 | if ((!popstate_running) && (current_node != id)) { |
439 | if ((!popstate_running) && (current_node != id)) { |
439 | openOidInPanel(id, false); |
440 | openOidInPanel(id, false); |
440 | } |
441 | } |
441 | - | ||
442 | glayout.resizeAll(); // This probably not required, but just to make sure |
- | |
443 | }); |
442 | }); |
444 | 443 | ||
445 | // --- Layout |
444 | // --- Layout |
446 | 445 | ||
447 | document.getElementById('system_title_menu').style.display = "block"; |
446 | document.getElementById('system_title_menu').style.display = "block"; |
Line 464... | Line 463... | ||
464 | west__slideTrigger_open: "mouseover", |
463 | west__slideTrigger_open: "mouseover", |
465 | center__maskContents: true // IMPORTANT - enable iframe masking |
464 | center__maskContents: true // IMPORTANT - enable iframe masking |
466 | }); |
465 | }); |
467 | }); |
466 | }); |
468 | 467 | ||
- | 468 | function glayoutWorkaroundA() { |
|
- | 469 | // "Bug A": Sometimes, the design is completelydestroyed after reloading the page. It does not help when glayout.resizeAll() |
|
- | 470 | // is called at the beginning (e.g. during the ready function), and it does not help if we wait 500ms. |
|
- | 471 | // So we do it all the time. It has probably something to do with slow loading times, since the error |
|
- | 472 | // does only appear when the page is "blank" for a short while while it is loading. |
|
- | 473 | glayout.resizeAll(); |
|
- | 474 | setTimeout(glayoutWorkaroundA, 100); |
|
- | 475 | } |
|
- | 476 | ||
- | 477 | function glayoutWorkaroundB() { |
|
- | 478 | // "Bug B": Sometimes, after reload, weird space between oidtree and content window, because oidtree has size of 438px |
|
- | 479 | document.getElementById("oidtree").style.width = "450px"; |
|
- | 480 | } |
|
- | 481 | ||
469 | function mobileNavClose() { |
482 | function mobileNavClose() { |
470 | if ($("#system_title_menu").is(":hidden")) { |
483 | if ($("#system_title_menu").is(":hidden")) { |
471 | return; |
484 | return; |
472 | } |
485 | } |
473 | 486 |