mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-10 08:02:26 +01:00
Store page size on manage and request pages
This commit is contained in:
@ -425,6 +425,7 @@
|
||||
this.page_size = 10;
|
||||
}
|
||||
this.page_number = 1;
|
||||
setCookie("REQUEST_PAGE_SIZE", this.page_size, 14);
|
||||
this.search();
|
||||
}
|
||||
}
|
||||
@ -455,6 +456,10 @@
|
||||
tata.error("", "An unknown error occurred, please try again.")
|
||||
}
|
||||
});
|
||||
const stored_page_size = parseInt(getCookie("REQUEST_PAGE_SIZE"));
|
||||
if (stored_page_size !== Number.NaN && stored_page_size > 0) {
|
||||
this.page_size = stored_page_size;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
search() {
|
||||
|
||||
Reference in New Issue
Block a user