From 06a3758eedbc6df53caab3b1ef320df781b71e83 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 28 Jul 2020 14:15:03 -0500 Subject: Fixes issue where zooming in on mapping results in some browsers caused the original tab's contents to be removed * wqflask/wqflask/templates/mapping_results.html: minor change to add spaces for readability * wqflask/wqflask/marker_regression/display_mapping_results.py: Removed "return" from chrView and rangeView since it appears to remove original tab's contents in some browers when submitting form --- wqflask/wqflask/marker_regression/display_mapping_results.py | 2 +- wqflask/wqflask/templates/mapping_results.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/marker_regression/display_mapping_results.py b/wqflask/wqflask/marker_regression/display_mapping_results.py index 89f56c30..9ac4946b 100644 --- a/wqflask/wqflask/marker_regression/display_mapping_results.py +++ b/wqflask/wqflask/marker_regression/display_mapping_results.py @@ -2133,7 +2133,7 @@ class DisplayMappingResults(object): #add by NL 09-03-2010 HREF = "javascript:chrView(%d,%s);" % (i,self.ChrLengthMbList) #HREF = "javascript:changeView(%d,%s);" % (i,self.ChrLengthMbList) - Areas = HT.Area(shape='rect',coords=COORDS,href=HREF) + Areas = HT.Area(shape='rect', coords=COORDS, href=HREF) gifmap.areas.append(Areas) startPosX += (self.ChrLengthDistList[i]+self.GraphInterval)*plotXScale diff --git a/wqflask/wqflask/templates/mapping_results.html b/wqflask/wqflask/templates/mapping_results.html index 81803deb..6348ca31 100644 --- a/wqflask/wqflask/templates/mapping_results.html +++ b/wqflask/wqflask/templates/mapping_results.html @@ -445,7 +445,7 @@ $('input[name=chr_mb_list]').val(chr_mb_list) $('#marker_regression_form').attr('action', '/loading'); - return $('#marker_regression_form').submit(); + $('#marker_regression_form').submit(); }; rangeView = function(this_chr, start_mb, end_mb) { @@ -455,7 +455,7 @@ //$('input[name=mb_range]').val(start_mb + "," + end_mb) $('#marker_regression_form').attr('action', '/loading'); - return $('#marker_regression_form').submit(); + $('#marker_regression_form').submit(); }; remap = function() { -- cgit v1.2.3