diff --git a/src/_h5ai/client/css/inc/preview-txt.less b/src/_h5ai/client/css/inc/preview-txt.less index 69abfc50..bbbb893a 100644 --- a/src/_h5ai/client/css/inc/preview-txt.less +++ b/src/_h5ai/client/css/inc/preview-txt.less @@ -25,6 +25,10 @@ position: relative; } +#pv-txt-spinner { + position: fixed; +} + #pv-txt-text { &.highlighted { diff --git a/src/_h5ai/client/js/inc/ext/preview-img.js b/src/_h5ai/client/js/inc/ext/preview-img.js index 2c89d02f..bce04108 100644 --- a/src/_h5ai/client/js/inc/ext/preview-img.js +++ b/src/_h5ai/client/js/inc/ext/preview-img.js @@ -100,8 +100,8 @@ modulejs.define('ext/preview-img', ['_', '$', 'core/settings', 'core/resource', var $img = $('') .one('load', function () { - callback($img); - // setTimeout(function () { callback($img); }, 1000); // for testing + // callback($img); + setTimeout(function () { callback($img); }, 1000); // for testing }) .attr('src', src); }, diff --git a/src/_h5ai/client/js/inc/ext/preview-txt.js b/src/_h5ai/client/js/inc/ext/preview-txt.js index 1ac2a43b..7f9ca4d2 100644 --- a/src/_h5ai/client/js/inc/ext/preview-txt.js +++ b/src/_h5ai/client/js/inc/ext/preview-txt.js @@ -33,6 +33,9 @@ modulejs.define('ext/preview-txt', ['_', '$', 'core/settings', 'core/resource', '
' + '
' + '
' + + '
' + + '' + + '
' + '
' + '