richdocuments/js/settings.js
Victor Dubiniuk 0d6d3a5d22 App settings
2013-08-27 20:26:33 +02:00

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);
});