From 14dcf6db10a5e80d6d2cfa1c1102bef8c68887e6 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 12 Apr 2016 17:26:08 +0000 Subject: Fixed order of columns in AJAX-loading global search and added trait link Table width is now correct with Y scrolling --- wqflask/wqflask/templates/gsearch_gene.html | 45 +++++++++++++++-------------- wqflask/wqflask/update_search_results.py | 2 +- 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/wqflask/wqflask/templates/gsearch_gene.html b/wqflask/wqflask/templates/gsearch_gene.html index 3f2888c2..7898435c 100755 --- a/wqflask/wqflask/templates/gsearch_gene.html +++ b/wqflask/wqflask/templates/gsearch_gene.html @@ -2,10 +2,6 @@ {% block title %}Search Results{% endblock %} {% block css %} - - - - {% endblock %} {% block content %} @@ -27,22 +23,28 @@

- - - - - - - - - - - - - - - -
IndexRecordSymbolDescriptionLocationMeanMax LRSMax LRS LocationAdditive Effect
+
+ + + + + + + + + + + + + + + + + + + +
IndexSpeciesGroupTissueDatasetRecordSymbolDescriptionLocationMeanMax
LRS ?
Max LRS LocationAdditive
Effect ?
+
@@ -156,7 +158,8 @@ } ], "sDom": "Bfrti", - "scrollY": 800, + "autoWidth": false, + "scrollY": "800px", "bDeferRender": true } ); diff --git a/wqflask/wqflask/update_search_results.py b/wqflask/wqflask/update_search_results.py index 6faf0d4b..7de2d8c0 100644 --- a/wqflask/wqflask/update_search_results.py +++ b/wqflask/wqflask/update_search_results.py @@ -111,7 +111,7 @@ class GSearch(object): trait.dataset.group.name, trait.dataset.tissue, trait.dataset.fullname, - trait.name, + "" + trait.name + "", trait.symbol, trait.description_display, trait.location_repr, -- cgit v1.2.3