From d64588a080bf8b1e9022ec565706c2f31c343cc3 Mon Sep 17 00:00:00 2001 From: Yves Noirjean <yves.noirjean@id.ethz.ch> Date: Fri, 25 May 2018 16:23:44 +0200 Subject: [PATCH] SSDM-5545: avoiding adding multiple spinners when showing image previews - this time for real --- .../js/views/DataSetForm/widgets/ImagePreviewIconLoader.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataSetForm/widgets/ImagePreviewIconLoader.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataSetForm/widgets/ImagePreviewIconLoader.js index 258192ce3c8..569b03ae290 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataSetForm/widgets/ImagePreviewIconLoader.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataSetForm/widgets/ImagePreviewIconLoader.js @@ -58,6 +58,9 @@ function ImagePreviewIconLoader() { } this._initLoading = function(node) { + + node.data.previewLoading = true; + var $span = $(node.span); var $imageContainer = $("<span>", { id : "image-container" }).css({ @@ -89,8 +92,6 @@ function ImagePreviewIconLoader() { */ this._loadImagePreview = function(params) { - params.node.data.previewLoading = true; - var $span = $(params.node.span); var $imageContainer = $span.children("#image-container"); -- GitLab