dynamically update title and visible durations for running records (#752)

This commit is contained in:
Kevin Papst
2019-05-05 03:01:25 +02:00
committed by GitHub
parent 65df1ff909
commit aa113cc300
14 changed files with 486 additions and 281 deletions

View File

@@ -189,6 +189,9 @@
});
{# $.kimai.pauseRecord('li.messages-menu ul.menu li'); #}
});
document.addEventListener('DOMContentLoaded', function() {
new KimaiActiveRecordsDuration('[data-since]').updateRecords().registerUpdates(5000);
});
</script>
{% set event = trigger(constant('App\\Event\\ThemeEvent::JAVASCRIPT')) %}
{{ event.content|raw }}