mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-15 09:24:21 +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')
|
$('#new-office-file-modal form')
|
||||||
.on('ajax:success', function(ev, data) {
|
.on('ajax:success', function(ev, data) {
|
||||||
window.open(data.edit_url, '_blank');
|
window.open(data.edit_url, '_blank');
|
||||||
$('#new-office-file-modal').modal('hide');
|
window.focus();
|
||||||
|
location.reload(); // Reload current page, to display the new element
|
||||||
// location.reload();
|
|
||||||
})
|
})
|
||||||
.on('ajax:error', function(ev, response) {
|
.on('ajax:error', function(ev, response) {
|
||||||
var element;
|
var element;
|
||||||
|
|
Loading…
Reference in a new issue