Mercurial > hg > orthanc
diff OrthancServer/OrthancExplorer/explorer.js @ 5246:b36f82260f41 db-protobuf
integration mainline->db-protobuf
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 07 Apr 2023 12:20:53 +0200 |
parents | 72dfa0ac84eb b2de3a2ad3b9 |
children | a7d95f951f8a |
line wrap: on
line diff
--- a/OrthancServer/OrthancExplorer/explorer.js Thu Apr 06 16:55:55 2023 +0200 +++ b/OrthancServer/OrthancExplorer/explorer.js Fri Apr 07 12:20:53 2023 +0200 @@ -1482,6 +1482,36 @@ window.location.href = '../series/' + $.mobile.pageData.uuid + '/media'; }); + +$('#patient-archive-link').live('click', function(e) { + e.preventDefault(); + var url = new URL('../patients/' + $.mobile.pageData.uuid + '/archive', window.location.href); + navigator.clipboard.writeText(url.href); + $(e.target).closest('li').buttonMarkup({ icon: 'check' }); +}); + +$('#study-archive-link').live('click', function(e) { + e.preventDefault(); + var url = new URL('../studies/' + $.mobile.pageData.uuid + '/archive', window.location.href); + navigator.clipboard.writeText(url.href); + $(e.target).closest('li').buttonMarkup({ icon: 'check' }); +}); + +$('#series-archive-link').live('click', function(e) { + e.preventDefault(); + var url = new URL('../series/' + $.mobile.pageData.uuid + '/archive', window.location.href); + navigator.clipboard.writeText(url.href); + $(e.target).closest('li').buttonMarkup({ icon: 'check' }); +}); + +$('#instance-download-link').live('click', function(e) { + e.preventDefault(); + var url = new URL('../instances/' + $.mobile.pageData.uuid + '/file', window.location.href); + navigator.clipboard.writeText(url.href); + $(e.target).closest('li').buttonMarkup({ icon: 'check' }); +}); + + $('.patient-attachment').live('click', function(e) { e.preventDefault(); //stop the browser from following window.location.href = '../patients/' + $.mobile.pageData.uuid + '/attachments/' + e.target.id + '/data';