View | Details | Raw Unified | Return to bug 36694
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js (-1 / +10 lines)
Lines 60-65 $.fn.selectTabByID = function (tabID) { Link Here
60
};
60
};
61
61
62
$(document).ready(function () {
62
$(document).ready(function () {
63
    //check if sticky element is stuck, if so add floating class
64
    if ( $('#toolbar.sticky').length ) {
65
      const observer = new IntersectionObserver(
66
        ([e]) => e.target.classList.toggle('floating', e.intersectionRatio < 1),
67
        {threshold: [1]}
68
      );
69
70
      observer.observe(document.querySelector('.sticky'));
71
    }
72
63
    //check for a hash before setting focus
73
    //check for a hash before setting focus
64
    let hash = window.location.hash;
74
    let hash = window.location.hash;
65
    if (!hash) {
75
    if (!hash) {
66
- 

Return to bug 36694