You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
442 B
JavaScript
15 lines
442 B
JavaScript
$(document).ready(function(){
|
|
|
|
var documentsSettings = {
|
|
save : function() {
|
|
var data = {
|
|
unstable : $('#webodf-unstable').attr('checked')==="checked"
|
|
};
|
|
$.post(OC.filePath('documents', 'ajax', 'settings.php'), data, documentsSettings.afterSave);
|
|
},
|
|
afterSave : function(){
|
|
documentsMain.useUnstable = $('#webodf-unstable').attr('checked')==="checked"
|
|
}
|
|
};
|
|
$('#webodf-unstable').change(documentsSettings.save);
|
|
}); |