Lines 63-72
router.beforeEach((to, from) => {
Link Here
|
63 |
}); |
63 |
}); |
64 |
router.afterEach((to, from) => { |
64 |
router.afterEach((to, from) => { |
65 |
let tab_id = 1; // Agreements |
65 |
let tab_id = 1; // Agreements |
66 |
if ( to.path.match(/\/erm\/eholdings\/local\/titles/)){ |
66 |
if (to.path.match(/\/erm\/eholdings\/local\/packages/)) { |
67 |
tab_id = 2; |
67 |
tab_id = 2; |
68 |
} else if ( to.path.match(/\/erm\/eholdings\/local\/packages/)){ |
68 |
} else if (to.path.match(/\/erm\/eholdings\/local\/titles/)) { |
69 |
tab_id = 3; |
69 |
tab_id = 3; |
70 |
} |
70 |
} |
71 |
document.getElementById('ui-id-' + tab_id).click(); |
71 |
let node = document.getElementById("ui-id-" + tab_id); |
72 |
}) |
72 |
if (node) { |
|
|
73 |
node.click(); |
74 |
} |
75 |
}); |
73 |
- |
|
|