Fix incorrect Javascript for changing Share API settings

remotes/origin/stable45
Michael Gapczynski 12 years ago
parent 9cd55508c3
commit 42a291286b
  1. 13
      settings/js/admin.js

@ -19,12 +19,15 @@ $(document).ready(function(){
});
$('#shareAPI input').change(function() {
if ($(this).attr('type') == 'radio') {
console.log('radio');
}
if ($(this).attr('type') == 'checkbox') {
console.log('checked');
if (this.checked) {
var value = 'yes';
} else {
var value = 'no';
}
} else {
var value = $(this).val()
}
OC.AppConfig.setValue('core', 'shareapi_', $(this).val());
OC.AppConfig.setValue('core', $(this).attr('name'), value);
});
});
Loading…
Cancel
Save