diff options
author | zsloan | 2015-08-12 18:19:23 +0000 |
---|---|---|
committer | zsloan | 2015-08-12 18:19:23 +0000 |
commit | a2fa749bd0aa39e95d1cf2fde0f3aef11a561272 (patch) | |
tree | 221825a564cc28fe47625e49534e351142b98f69 /wqflask | |
parent | b9fe8453e5ff46960a0b812f0f3c0b646977afa3 (diff) | |
download | genenetwork2-a2fa749bd0aa39e95d1cf2fde0f3aef11a561272.tar.gz |
Made Select Top function more intuitively and changed the text box length
Diffstat (limited to 'wqflask')
-rwxr-xr-x | wqflask/wqflask/static/new/javascript/search_results.js | 10 | ||||
-rwxr-xr-x | wqflask/wqflask/templates/gsearch_gene.html | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/wqflask/wqflask/static/new/javascript/search_results.js b/wqflask/wqflask/static/new/javascript/search_results.js index 7064b6ff..5a2ae3c4 100755 --- a/wqflask/wqflask/static/new/javascript/search_results.js +++ b/wqflask/wqflask/static/new/javascript/search_results.js @@ -54,9 +54,19 @@ $(function() { $(this).closest('tr').addClass('selected') } } + else { + if ($(this).closest('tr').hasClass('selected')) { + $(this).closest('tr').removeClass('selected') + } + } i += 1 }); } + else { + $('#trait_table > tbody > tr').each(function(){ + $(this).closest('tr').removeClass('selected') + }); + } change_buttons(); }); diff --git a/wqflask/wqflask/templates/gsearch_gene.html b/wqflask/wqflask/templates/gsearch_gene.html index ba2276d4..6beefb01 100755 --- a/wqflask/wqflask/templates/gsearch_gene.html +++ b/wqflask/wqflask/templates/gsearch_gene.html @@ -21,8 +21,8 @@ <button class="btn btn-default" id="invert"><span class="glyphicon glyphicon-resize-vertical"></span> Invert</button> <button class="btn btn-default" id="add" disabled ><span class="glyphicon glyphicon-plus-sign"></span> Add</button> <button class="btn btn-primary pull-right"><span class="glyphicon glyphicon-download"></span> Download Table</button> - <input type="text" id="searchbox" class="form-control" style="width: 200px; display: inline;" placeholder="Search This Table For ..."> - <input type="text" id="select_top" class="form-control" style="width: 200px; display: inline;" placeholder="Select Top ..."> + <input type="text" id="searchbox" class="form-control" style="width: 180px; display: inline;" placeholder="Search This Table For ..."> + <input type="text" id="select_top" class="form-control" style="width: 120px; display: inline;" placeholder="Select Top ..."> <br /> <br /> |