# HG changeset patch # User Sebastien Jodogne # Date 1625749041 -7200 # Node ID 1a061bc2d6cad1a57b6e54d190b1bfed219f51cd # Parent 4336642b8cff9037acb806a8115ebb36bdbd630b Clicking on "Send to remote modality" displays the job information to monitor progress diff -r 4336642b8cff -r 1a061bc2d6ca NEWS --- a/NEWS Thu Jul 08 14:42:20 2021 +0200 +++ b/NEWS Thu Jul 08 14:57:21 2021 +0200 @@ -1,6 +1,11 @@ Pending changes in the mainline =============================== +Orthanc Explorer +---------------- + +* Clicking on "Send to remote modality" displays the job information to monitor progress + Version 1.9.5 (2021-07-08) ========================== diff -r 4336642b8cff -r 1a061bc2d6ca OrthancServer/OrthancExplorer/explorer.js --- a/OrthancServer/OrthancExplorer/explorer.js Thu Jul 08 14:42:20 2021 +0200 +++ b/OrthancServer/OrthancExplorer/explorer.js Thu Jul 08 14:57:21 2021 +0200 @@ -1260,19 +1260,23 @@ } if (url != '') { + /** + * In Orthanc <= 1.9.5, synchronous job was used, which caused a + * non-intuitive behavior because of AJAX timeouts on large + * studies. We now use an asynchronous call. + * https://groups.google.com/g/orthanc-users/c/r2LoAp72AWI/m/cVaFXopUBAAJ + **/ $.ajax({ url: url, type: 'POST', - dataType: 'text', - data: pageData.uuid, - async: true, // Necessary to block UI - beforeSend: function() { - $.blockUI({ message: $(loading) }); - }, - complete: function(s) { - $.unblockUI(); - }, - success: function(s) { + data: JSON.stringify({ + 'Synchronous' : false, + 'Resources' : [ pageData.uuid ] + }), + dataType: 'json', + async: false, + success: function(job) { + window.location.assign('explorer.html#job?uuid=' + job.ID); }, error: function() { alert('Error during store');