Skip to content
Snippets Groups Projects
Commit 42a29128 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Fix incorrect Javascript for changing Share API settings

parent 9cd55508
No related branches found
No related tags found
No related merge requests found
......@@ -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);
});
});
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment