aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2019-12-20 14:32:06 -0600
committerzsloan2019-12-20 14:32:06 -0600
commit0aa22da4f1098b011a7a7ff9a8fe1e8473da0d54 (patch)
tree812a035145bd102c0b2cb5a961ae81b5a346b6c7 /wqflask
parent79396ae42c395d4383441248d85405c97f45faf1 (diff)
downloadgenenetwork2-0aa22da4f1098b011a7a7ff9a8fe1e8473da0d54.tar.gz
Change needed to get info pages to work when there's no accession id
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/static/new/javascript/dataset_select_menu_orig.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/static/new/javascript/dataset_select_menu_orig.js b/wqflask/wqflask/static/new/javascript/dataset_select_menu_orig.js
index da918a89..fad600d2 100644
--- a/wqflask/wqflask/static/new/javascript/dataset_select_menu_orig.js
+++ b/wqflask/wqflask/static/new/javascript/dataset_select_menu_orig.js
@@ -142,10 +142,10 @@ $('#group_info').click(group_info);
dataset_info = function() {
var dataset, url;
accession_id = $('#dataset option:selected').data("id");
+ name = $('#dataset option:selected').val();
if (accession_id != "None") {
- url = "http://genenetwork.org/webqtl/main.py?FormID=sharinginfo&GN_AccessionId=" + accession_id;
+ url = "http://genenetwork.org/webqtl/main.py?FormID=sharinginfo&GN_AccessionId=" + accession_id + "&InfoPageName=" + name;
} else {
- name = $('#dataset option:selected').val();
url = "http://genenetwork.org/webqtl/main.py?FormID=sharinginfo&InfoPageName=" + name;
}
return open_window(url, "Dataset Info");