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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/main-erm.ts (-1 / +9 lines)
Lines 60-62 const { removeMessages } = mainStore; Link Here
60
router.beforeEach((to, from) => {
60
router.beforeEach((to, from) => {
61
    removeMessages(); // This will actually flag the messages as displayed already
61
    removeMessages(); // This will actually flag the messages as displayed already
62
});
62
});
63
- 
63
router.afterEach((to, from) => {
64
    let tab_id = 1; // Agreements
65
    if ( to.path.match(/\/erm\/eholdings\/local\/titles/)){
66
        tab_id = 2;
67
    } else if ( to.path.match(/\/erm\/eholdings\/local\/packages/)){
68
        tab_id = 3;
69
    }
70
    document.getElementById('ui-id-' + tab_id).click();
71
})

Return to bug 32728