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.
16 lines
497 B
JavaScript
16 lines
497 B
JavaScript
$(document).ready(function(){
|
|
$('#appsettings_popup').wrap('<div id="office-appsettings"></div>');
|
|
|
|
var officeSettings = {
|
|
save : function() {
|
|
var data = {
|
|
unstable : $('#webodf-unstable').attr('checked')==="checked"
|
|
};
|
|
$.post(OC.filePath('office', 'ajax', 'settings.php'), data, officeSettings.afterSave);
|
|
},
|
|
afterSave : function(){
|
|
officeMain.useUnstable = $('#webodf-unstable').attr('checked')==="checked"
|
|
}
|
|
};
|
|
$('#webodf-unstable').change(officeSettings.save);
|
|
}); |