Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/js/settings-admin-carddav.js6
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');
+});