Release 2.0.13 (#3955)
- added missing escape to prevent HTML injection - added missing color attribute - upgrade theme - use dropdown submenu if title is set, otherwise dropdown tends to get too long - allow to use card-table instead of card-body - added `required` attribute to username and password field - fix pagination back to page 1 - prevent tag name too long - re-add missing user preferences link
This commit is contained in:
@@ -163,7 +163,12 @@ export default class KimaiToolbar extends KimaiPlugin {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
let urlParts = target.href.split('/');
|
||||
pager.value = urlParts[urlParts.length-1];
|
||||
let pageNumber = urlParts[urlParts.length - 1];
|
||||
// page number usually is the default value and is therefor missing from the URL
|
||||
if (!/\d/.test(pageNumber)) {
|
||||
pageNumber = 1;
|
||||
}
|
||||
pager.value = pageNumber;
|
||||
pager.dispatchEvent(new Event('change'));
|
||||
document.dispatchEvent(new Event('pagination-change'));
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user