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.
28 lines
613 B
JavaScript
28 lines
613 B
JavaScript
/*global OC, $ */
|
|
|
|
$(document).ready(function(){
|
|
|
|
var documentsSettings = {
|
|
save : function() {
|
|
$('#docs_apply').attr('disabled', true);
|
|
var data = {
|
|
wopi_url : $('#wopi_url').val()
|
|
};
|
|
|
|
OC.msg.startAction('#documents-admin-msg', t('richdocuments', 'Saving...'));
|
|
$.post(
|
|
OC.filePath('richdocuments', 'ajax', 'admin.php'),
|
|
data,
|
|
documentsSettings.afterSave
|
|
);
|
|
},
|
|
|
|
afterSave : function(response){
|
|
$('#docs_apply').attr('disabled', false);
|
|
OC.msg.finishedAction('#documents-admin-msg', response);
|
|
}
|
|
};
|
|
|
|
$('#docs_apply').on('click', documentsSettings.save);
|
|
});
|