Reference `$(this)` instead

This commit is contained in:
Lukas Reschke 2015-04-08 21:26:12 +02:00
parent 0cd29e00d1
commit eb1cf58d11
1 changed files with 1 additions and 1 deletions

View File

@ -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',