diff --git a/modules/dicom_archive/js/view_details_link.js b/modules/dicom_archive/js/view_details_link.js deleted file mode 100644 index 8ec6ab21e61..00000000000 --- a/modules/dicom_archive/js/view_details_link.js +++ /dev/null @@ -1,53 +0,0 @@ -$(document).ready(function() { - // Filters will only get applied on a POST, so - // on click we need to fake a form which posts - // to the mri_violations in order to get filters - $(".dicom_archive").click(function(e) { - e.preventDefault(); - var form = $('
', { - "action" : loris.BaseURL + "/mri_violations/", - "method" : "post" - }); - var values = { - "reset" : "true", - "PatientName" : this.dataset.patientname, - "SeriesUID" : this.dataset.seriesuid, - "filter" : "Show Data" - }; - - $.each(values, function(name, value) { - $("", { - type: 'hidden', - name: name, - value: value - }).appendTo(form); - }); - - form.appendTo('body').submit(); - }); - - $(".dicom_archive_datasets").click(function(e) { - e.preventDefault(); - var form = $('', { - "action" : loris.BaseURL + "/mri_violations/", - "method" : "post" - }); - var values = { - "reset" : "true", - "PatientName" : this.dataset.patientname, - "filter" : "Show Data" - }; - - $.each(values, function(name, value) { - $("", { - type: 'hidden', - name: name, - value: value - }).appendTo(form); - }); - - form.appendTo('body').submit(); - }); - -}); - diff --git a/modules/dicom_archive/php/viewdetails.class.inc b/modules/dicom_archive/php/viewdetails.class.inc index 388c544ea43..816a34ec329 100644 --- a/modules/dicom_archive/php/viewdetails.class.inc +++ b/modules/dicom_archive/php/viewdetails.class.inc @@ -357,24 +357,6 @@ class ViewDetails extends \NDB_Form ); } - /** - * Overrides base getJSDependencies() to add additional JS files - * - * @return array of extra JS files that this page depends on - */ - function getJSDependencies() - { - $factory = \NDB_Factory::singleton(); - $baseURL = $factory->settings()->getBaseURL(); - $deps = parent::getJSDependencies(); - return array_merge( - $deps, - [ - $baseURL . "/dicom_archive/js/view_details_link.js", - ] - ); - } - /** * Generate a breadcrumb trail for this page. * @@ -392,4 +374,3 @@ class ViewDetails extends \NDB_Form ); } } - diff --git a/modules/dicom_archive/templates/form_viewDetails.tpl b/modules/dicom_archive/templates/form_viewDetails.tpl index 4ce6792c2a9..61636b253e9 100644 --- a/modules/dicom_archive/templates/form_viewDetails.tpl +++ b/modules/dicom_archive/templates/form_viewDetails.tpl @@ -3,9 +3,8 @@