Refresh current page after new OfficeOnline file is created

This commit is contained in:
Luka Murn 2019-05-10 18:30:48 +02:00
parent 890df8803e
commit bbfad0efe5

View file

@ -20,9 +20,8 @@ function initCreateWopiFileModal() {
$('#new-office-file-modal form')
.on('ajax:success', function(ev, data) {
window.open(data.edit_url, '_blank');
$('#new-office-file-modal').modal('hide');
// location.reload();
window.focus();
location.reload(); // Reload current page, to display the new element
})
.on('ajax:error', function(ev, response) {
var element;