mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-06 12:43:06 +08:00
Add check for refreshProtocolStatusBar function exist (#1794)
This commit is contained in:
parent
da33a053cf
commit
fb30e6b6e5
2 changed files with 4 additions and 4 deletions
|
@ -189,7 +189,7 @@
|
|||
$("html, body").animate({ scrollTop: $step.offset().top - window.innerHeight / 2 });
|
||||
}
|
||||
|
||||
refreshProtocolStatusBar();
|
||||
if (typeof refreshProtocolStatusBar === 'function') refreshProtocolStatusBar();
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -609,7 +609,7 @@
|
|||
DragNDropSteps.clearFiles();
|
||||
FilePreviewModal.init();
|
||||
$.initTooltips();
|
||||
refreshProtocolStatusBar();
|
||||
if (typeof refreshProtocolStatusBar === 'function') refreshProtocolStatusBar();
|
||||
},
|
||||
error: function(xhr) {
|
||||
if (xhr.responseJSON['assets.file']) {
|
||||
|
|
|
@ -404,7 +404,7 @@ var FilePreviewModal = (function() {
|
|||
imageEditor = {};
|
||||
$('#tui-image-editor').html('');
|
||||
$('#fileEditModal').modal('hide');
|
||||
refreshProtocolStatusBar();
|
||||
if (typeof refreshProtocolStatusBar === 'function') refreshProtocolStatusBar();
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -467,7 +467,7 @@ var FilePreviewModal = (function() {
|
|||
modal.find('.file-name').text(name);
|
||||
modal.find('.preview-close').click(function() {
|
||||
modal.modal('hide');
|
||||
refreshProtocolStatusBar();
|
||||
if (typeof refreshProtocolStatusBar === 'function') refreshProtocolStatusBar();
|
||||
});
|
||||
modal.modal();
|
||||
modal.find('a[disabled=disabled]').click(function(ev) {
|
||||
|
|
Loading…
Reference in a new issue