Watch the chnage event to update the settings
Co-authored-by: John Molakvoæ <skjnldsv@users.noreply.github.com> Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
0ee66348d1
commit
14587d4248
|
@ -21,6 +21,6 @@
|
||||||
*/
|
*/
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
document.getElementById('carddavExposeSystemAddressBook').onclick = function() {
|
document.getElementById('carddavExposeSystemAddressBook').addEventListener('change', function(e) {
|
||||||
OCP.AppConfig.setValue('dav', 'exposeSystemAddressBook', this.checked ? 'yes' : 'no');
|
OCP.AppConfig.setValue('dav', 'exposeSystemAddressBook', e.target.checked ? 'yes' : 'no');
|
||||||
};
|
});
|
||||||
|
|
Loading…
Reference in New Issue