diff --git a/beat/web/reports/static/reports/app/directives/downloadLink.js b/beat/web/reports/static/reports/app/directives/downloadLink.js index 78058d1b2b79513b4187fb70b77a9ac9664991a8..3b16d0dac7b7a582aaddf647a62620759b144210 100644 --- a/beat/web/reports/static/reports/app/directives/downloadLink.js +++ b/beat/web/reports/static/reports/app/directives/downloadLink.js @@ -48,7 +48,7 @@ angular.module('reportApp') .then(data => { e.preventDefault(); // invisible el, see end of template - const a = document.querySelector(`#${scope.domId}-download`); + const a = document.getElementById(`${scope.domId}-download`); a.href = data; a.download = `${scope.domId}-${scope.itemId}.${ftype.toLowerCase()}`; diff --git a/beat/web/reports/static/reports/app/directives/plotItem.js b/beat/web/reports/static/reports/app/directives/plotItem.js index 36039d8308359bf267c0e52df6f93ac1a245d191..6fa23841354c290bb22246bc0424b153a65a1933 100644 --- a/beat/web/reports/static/reports/app/directives/plotItem.js +++ b/beat/web/reports/static/reports/app/directives/plotItem.js @@ -61,7 +61,7 @@ angular.module('reportApp') clearTimeout(plotTimer); const queueUpdate = () => { - let el = document.querySelector(`#${scope.renderDivId}`); + let el = document.getElementById(`${scope.renderDivId}`); // if the container is rendered and it already has had a render, // redo the render if(el && el.childNodes.length > 0){ diff --git a/beat/web/reports/static/reports/app/services/plotService.js b/beat/web/reports/static/reports/app/services/plotService.js index e5b576d015c6212f3444c07d93dd4495795c58c4..b8ae139df32e1bf03a7ade529669acf0524d465d 100644 --- a/beat/web/reports/static/reports/app/services/plotService.js +++ b/beat/web/reports/static/reports/app/services/plotService.js @@ -151,7 +151,7 @@ angular.module('reportApp').factory('PlotService', ['UrlService', function(UrlSe // url_prefix urlPrefix, // element to append render to - document.querySelector(`#${containerId}`), + document.getElementById(`${ containerId }`), // spread out the request data to fill the next 3 spots ...requestData, // dont replace inner content