diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/js/settings-admin-carddav.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/js/settings-admin-carddav.js b/apps/dav/js/settings-admin-carddav.js index db0ea65f03f..daaecae8e5f 100644 --- a/apps/dav/js/settings-admin-carddav.js +++ b/apps/dav/js/settings-admin-carddav.js @@ -21,6 +21,6 @@ */ "use strict"; -document.getElementById('carddavExposeSystemAddressBook').onclick = function() { - OCP.AppConfig.setValue('dav', 'exposeSystemAddressBook', this.checked ? 'yes' : 'no'); -}; +document.getElementById('carddavExposeSystemAddressBook').addEventListener('change', function(e) { + OCP.AppConfig.setValue('dav', 'exposeSystemAddressBook', e.target.checked ? 'yes' : 'no'); +}); |