From: Lukas Reschke Date: Wed, 8 Apr 2015 19:26:12 +0000 (+0200) Subject: Reference `$(this)` instead X-Git-Tag: v8.1.0alpha1~59^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eb1cf58d11a6514261eb11abde37ed924cfa8a51;p=nextcloud-server.git Reference `$(this)` instead --- diff --git a/settings/js/apps.js b/settings/js/apps.js index cd69fe1c28f..1bd7ffdf790 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -464,7 +464,7 @@ OC.Settings.Apps = OC.Settings.Apps || { }); $(document).on('click', '#enable-experimental-apps', function () { - var state = $('#enable-experimental-apps').prop('checked'); + var state = $(this).prop('checked') $.ajax(OC.generateUrl('settings/apps/experimental'), { data: {state: state}, type: 'POST',