# HG changeset patch # User Sebastien Jodogne # Date 1716298060 -7200 # Node ID 9ed0cb5d6082acb6f9137b49897bcc0e8dba0f16 # Parent 41e3b79e7f4bb592696718343056ebb5a1df900a added button to import nexus files diff -r 41e3b79e7f4b -r 9ed0cb5d6082 Sources/OrthancExplorer.js --- a/Sources/OrthancExplorer.js Tue May 21 15:19:08 2024 +0200 +++ b/Sources/OrthancExplorer.js Tue May 21 15:27:40 2024 +0200 @@ -340,7 +340,7 @@ var description = $('#stl-attach-instance-description').val(); if (fileInput.files.length == 0) { - alert('No Instance file was selected'); + alert('No STL file was selected'); return; } @@ -392,6 +392,105 @@ } +function AddImportNexusButton(studyId) { + if (${IS_NEXUS_ENABLED}) { + $('#stl-attach-nexus').remove(); + + var instance = $('') + .attr('id', 'stl-attach-nexus') + .attr('data-role', 'button') + .attr('href', '#') + .attr('data-icon', 'search') + .attr('data-theme', 'e') + .text('Attach Nexus model') + .button(); + + instance.insertAfter($('#study-info')); + instance.click(function() { + + var options = $('