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

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