Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/techsneeze/dmarcts-report-viewer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjnew-gh <github@hazelden.ca>2021-04-20 08:15:21 +0300
committerjnew-gh <github@hazelden.ca>2021-04-20 08:15:21 +0300
commit77246ac249ba9ac590896da0378abf633975ecee (patch)
tree9069dac1c136d140d0e913cc33a8f56d1b2b6d63
parentf3ad025583c2ceb2d7a36fd0d064c31f3e36ebdf (diff)
Test for existence of Report List table
If the filters are set so that no Report List table is returned, don't try to set its properties
-rw-r--r--dmarcts-report-viewer.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/dmarcts-report-viewer.js b/dmarcts-report-viewer.js
index 7962608..3f2a377 100644
--- a/dmarcts-report-viewer.js
+++ b/dmarcts-report-viewer.js
@@ -170,6 +170,7 @@ function set_title(domain) {
function set_heights() {
+ if ( document.getElementById('reportlistTbl') != 'undefined' && document.getElementById('reportlistTbl') != null ) {
var taken_height =
parseInt(window.getComputedStyle(document.getElementById('body')).getPropertyValue('margin-top'))
+ parseInt(window.getComputedStyle(document.getElementById('body')).getPropertyValue('margin-bottom'))
@@ -206,6 +207,7 @@ function set_heights() {
document.getElementById('report_list').style.height = report_list_height + "px";
document.getElementById('report_data').style.height = report_data_height + "px";
}
+}
function set_report_data_heights() {