mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 19:51:01 +08:00
Refresh current page after new OfficeOnline file is created
This commit is contained in:
parent
890df8803e
commit
bbfad0efe5
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue