javascript and api to stop and display active records (#772)

This commit is contained in:
Kevin Papst
2019-05-10 13:45:09 +02:00
committed by GitHub
parent e619b5fd31
commit 09da7cd242
86 changed files with 918 additions and 449 deletions

View File

@@ -18,11 +18,13 @@ export default class KimaiEvent extends KimaiPlugin {
}
trigger(name) {
if (name === null) {
if (name === null || name === undefined) {
return;
}
document.dispatchEvent(new Event(name));
for(let event of name.split(' ')) {
document.dispatchEvent(new Event(event));
}
}
}