Mercurial > hg > orthanc
comparison OrthancServer/OrthancExplorer/explorer.js @ 5245:b2de3a2ad3b9
Orthanc Explorer: buttons to copy the URL of ZIP/DICOM to the clipboard
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 07 Apr 2023 12:20:27 +0200 |
parents | 0ea402b4d901 |
children | b36f82260f41 |
comparison
equal
deleted
inserted
replaced
5240:c9e2c6d1cd62 | 5245:b2de3a2ad3b9 |
---|---|
1363 $('#series-media').live('click', function(e) { | 1363 $('#series-media').live('click', function(e) { |
1364 e.preventDefault(); //stop the browser from following | 1364 e.preventDefault(); //stop the browser from following |
1365 window.location.href = '../series/' + $.mobile.pageData.uuid + '/media'; | 1365 window.location.href = '../series/' + $.mobile.pageData.uuid + '/media'; |
1366 }); | 1366 }); |
1367 | 1367 |
1368 | |
1369 $('#patient-archive-link').live('click', function(e) { | |
1370 e.preventDefault(); | |
1371 var url = new URL('../patients/' + $.mobile.pageData.uuid + '/archive', window.location.href); | |
1372 navigator.clipboard.writeText(url.href); | |
1373 $(e.target).closest('li').buttonMarkup({ icon: 'check' }); | |
1374 }); | |
1375 | |
1376 $('#study-archive-link').live('click', function(e) { | |
1377 e.preventDefault(); | |
1378 var url = new URL('../studies/' + $.mobile.pageData.uuid + '/archive', window.location.href); | |
1379 navigator.clipboard.writeText(url.href); | |
1380 $(e.target).closest('li').buttonMarkup({ icon: 'check' }); | |
1381 }); | |
1382 | |
1383 $('#series-archive-link').live('click', function(e) { | |
1384 e.preventDefault(); | |
1385 var url = new URL('../series/' + $.mobile.pageData.uuid + '/archive', window.location.href); | |
1386 navigator.clipboard.writeText(url.href); | |
1387 $(e.target).closest('li').buttonMarkup({ icon: 'check' }); | |
1388 }); | |
1389 | |
1390 $('#instance-download-link').live('click', function(e) { | |
1391 e.preventDefault(); | |
1392 var url = new URL('../instances/' + $.mobile.pageData.uuid + '/file', window.location.href); | |
1393 navigator.clipboard.writeText(url.href); | |
1394 $(e.target).closest('li').buttonMarkup({ icon: 'check' }); | |
1395 }); | |
1396 | |
1397 | |
1368 $('.patient-attachment').live('click', function(e) { | 1398 $('.patient-attachment').live('click', function(e) { |
1369 e.preventDefault(); //stop the browser from following | 1399 e.preventDefault(); //stop the browser from following |
1370 window.location.href = '../patients/' + $.mobile.pageData.uuid + '/attachments/' + e.target.id + '/data'; | 1400 window.location.href = '../patients/' + $.mobile.pageData.uuid + '/attachments/' + e.target.id + '/data'; |
1371 }); | 1401 }); |
1372 | 1402 |