diff --git a/rapids/templates/rapids/rapid_form.html b/rapids/templates/rapids/rapid_form.html index 0309f60d..bae69431 100755 --- a/rapids/templates/rapids/rapid_form.html +++ b/rapids/templates/rapids/rapid_form.html @@ -470,11 +470,11 @@ $(element2).addClass("temp-thumb-large"); cornerstone.resize(element2) -setTimeout(function (){ - ocr2($(element2).find("canvas").get(0).toDataURL(), el); - $(element2).removeClass("temp-thumb-large"); - cornerstone.resize(element2) -}, 500); + setTimeout(function () { + ocr2($(element2).find("canvas").get(0).toDataURL(), el); + $(element2).removeClass("temp-thumb-large"); + cornerstone.resize(element2) + }, 500); }); } @@ -487,7 +487,9 @@ setTimeout(function (){ console.log("active", active_file_inputs) // Only load once all queued files have been processed if (active_file_inputs.size < 1) { - loadViewer(); + setTimeout(function () { + loadViewer(); + }, 1000); } } //})