From 9f981671f37327aac03e21633fc7257765ebe4fa Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 17 Dec 2015 11:04:22 +0100 Subject: Fix storing the settings --- js/admin.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 js/admin.js (limited to 'js/admin.js') diff --git a/js/admin.js b/js/admin.js new file mode 100644 index 0000000..89141ea --- /dev/null +++ b/js/admin.js @@ -0,0 +1,9 @@ +$(document).ready(function() { + $('.popularitycontestclient_category').change(function() { + OC.AppConfig.setValue( + 'popularitycontestclient', + $(this).attr('name').substring(24), + $(this).attr('checked') ? 'yes' : 'no' + ); + }); +}); -- cgit v1.2.3