чекбоксы в выборе семестра и кабинет кафедры
This commit is contained in:
1 parent
d285db8f58
commit
deeee47cae
15 files changed
+757
-115
No files matched your search
@@ -0,0 +1,14 @@
|
||||
// Однократная передача выбранной записи между вкладками без персональных данных в URL.
|
||||
let pendingNavigation = null;
|
||||
|
||||
export function navigateDepartmentTab(tab, context = {}) {
|
||||
pendingNavigation = { tab, ...context };
|
||||
window.location.hash = tab;
|
||||
}
|
||||
|
||||
export function consumeDepartmentNavigation(tab) {
|
||||
if (pendingNavigation?.tab !== tab) return {};
|
||||
const context = pendingNavigation;
|
||||
pendingNavigation = null;
|
||||
return context;
|
||||
}
|
||||
Reference in new issue
Block a user