comparison OrthancServer/OrthancExplorer/explorer.js @ 4750:56ed4c11fc2a openssl-3.x

integration mainline->openssl-3.x
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 08 Jul 2021 14:58:18 +0200
parents c1d6ce00be3f 1a061bc2d6ca
children b2417ac5055a
comparison
equal deleted inserted replaced
4743:336571b8952f 4750:56ed4c11fc2a
1246 url = '../peers/' + peer + '/store'; 1246 url = '../peers/' + peer + '/store';
1247 loading = '#peer-store'; 1247 loading = '#peer-store';
1248 } 1248 }
1249 1249
1250 if (url != '') { 1250 if (url != '') {
1251 /**
1252 * In Orthanc <= 1.9.5, synchronous job was used, which caused a
1253 * non-intuitive behavior because of AJAX timeouts on large
1254 * studies. We now use an asynchronous call.
1255 * https://groups.google.com/g/orthanc-users/c/r2LoAp72AWI/m/cVaFXopUBAAJ
1256 **/
1251 $.ajax({ 1257 $.ajax({
1252 url: url, 1258 url: url,
1253 type: 'POST', 1259 type: 'POST',
1254 dataType: 'text', 1260 data: JSON.stringify({
1255 data: pageData.uuid, 1261 'Synchronous' : false,
1256 async: true, // Necessary to block UI 1262 'Resources' : [ pageData.uuid ]
1257 beforeSend: function() { 1263 }),
1258 $.blockUI({ message: $(loading) }); 1264 dataType: 'json',
1259 }, 1265 async: false,
1260 complete: function(s) { 1266 success: function(job) {
1261 $.unblockUI(); 1267 window.location.assign('explorer.html#job?uuid=' + job.ID);
1262 },
1263 success: function(s) {
1264 }, 1268 },
1265 error: function() { 1269 error: function() {
1266 alert('Error during store'); 1270 alert('Error during store');
1267 } 1271 }
1268 }); 1272 });