diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-12-17 13:04:22 +0300 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-12-17 13:04:22 +0300 |
commit | 9f981671f37327aac03e21633fc7257765ebe4fa (patch) | |
tree | 42dca5ebff9ab9433273011aa6df22ec61758c09 /js/admin.js | |
parent | 2691aaf9192413ffe606f53242996b06e16f7436 (diff) |
Fix storing the settings
Diffstat (limited to 'js/admin.js')
-rw-r--r-- | js/admin.js | 9 |
1 files changed, 9 insertions, 0 deletions
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' + ); + }); +}); |