2013-08-18 12:54:57 +03:00
|
|
|
$(document).ready(function(){
|
|
|
|
|
2013-08-28 12:02:27 +02:00
|
|
|
var documentsSettings = {
|
2013-08-18 12:54:57 +03:00
|
|
|
save : function() {
|
|
|
|
var data = {
|
|
|
|
unstable : $('#webodf-unstable').attr('checked')==="checked"
|
|
|
|
};
|
2014-10-26 15:47:56 +03:00
|
|
|
$.post(OC.generateUrl('apps/documents/ajax/config/unstable'), data, documentsSettings.afterSave);
|
2013-08-18 12:54:57 +03:00
|
|
|
},
|
|
|
|
afterSave : function(){
|
2013-08-28 12:02:27 +02:00
|
|
|
documentsMain.useUnstable = $('#webodf-unstable').attr('checked')==="checked"
|
2013-08-18 12:54:57 +03:00
|
|
|
}
|
|
|
|
};
|
2013-08-28 12:02:27 +02:00
|
|
|
$('#webodf-unstable').change(documentsSettings.save);
|
2013-08-18 12:54:57 +03:00
|
|
|
});
|