diff options
author | zsloan | 2019-12-20 14:32:06 -0600 |
---|---|---|
committer | zsloan | 2019-12-20 14:32:06 -0600 |
commit | 0aa22da4f1098b011a7a7ff9a8fe1e8473da0d54 (patch) | |
tree | 812a035145bd102c0b2cb5a961ae81b5a346b6c7 | |
parent | 79396ae42c395d4383441248d85405c97f45faf1 (diff) | |
download | genenetwork2-0aa22da4f1098b011a7a7ff9a8fe1e8473da0d54.tar.gz |
Change needed to get info pages to work when there's no accession id
-rw-r--r-- | wqflask/wqflask/static/new/javascript/dataset_select_menu_orig.js | 4 |
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"); |