Skip to content

Commit

Permalink
fixed JS example
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Sep 19, 2023
1 parent ef4e599 commit 3c03dad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/plugins/custom-javascript-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ document.addEventListener('show.bs.modal', (e) => {
Always deactivate the export checkbox:
```javascript
document.addEventListener('kimai.initialized', function(event) {
const cb = document.querySelector('#preview_export #markAsExportedCheck');
if (cb !== null && cb.checked) { cb.checked = false; }
const ec = document.getElementById('markAsExportedCheck');
if (ec !== null && ec.checked) { ec.checked = false; document.getElementById('markAsExported').value = 0; }
});
```

Expand Down

0 comments on commit 3c03dad

Please sign in to comment.