switch to pure js

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
Bjoern Schiessle 2020-10-05 20:03:35 +02:00
parent 0f5f4cdbe1
commit 0ee66348d1
1 changed files with 3 additions and 5 deletions

View File

@ -21,8 +21,6 @@
*/
"use strict";
$('#carddavExposeSystemAddressBook').change(function() {
var val = $(this)[0].checked;
OCP.AppConfig.setValue('dav', 'exposeSystemAddressBook', val ? 'yes' : 'no');
});
document.getElementById('carddavExposeSystemAddressBook').onclick = function() {
OCP.AppConfig.setValue('dav', 'exposeSystemAddressBook', this.checked ? 'yes' : 'no');
};