diff options
author | zsloan | 2016-11-02 21:54:41 +0000 |
---|---|---|
committer | zsloan | 2016-11-02 21:54:41 +0000 |
commit | de58be0b8620032261f1f4699856994a4ee164d7 (patch) | |
tree | 1471365be3ff35e5ae423e78fe763c7bf67dd9b5 /wqflask/wqflask/static/new/javascript | |
parent | daecb401ec470064cb69c11e0241fd14a915de8f (diff) | |
download | genenetwork2-de58be0b8620032261f1f4699856994a4ee164d7.tar.gz |
Added toggleable short and long labels to correlation matrix
Fixed issue where I forgot to remove a parameter from jsonable_table_row in trait.py
Diffstat (limited to 'wqflask/wqflask/static/new/javascript')
-rw-r--r-- | wqflask/wqflask/static/new/javascript/create_corr_matrix.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/wqflask/wqflask/static/new/javascript/create_corr_matrix.js b/wqflask/wqflask/static/new/javascript/create_corr_matrix.js index a34fc408..44ed3c81 100644 --- a/wqflask/wqflask/static/new/javascript/create_corr_matrix.js +++ b/wqflask/wqflask/static/new/javascript/create_corr_matrix.js @@ -56,4 +56,26 @@ $('.corr_cell').each( function () { else { $(this).css('background-color', 'white') } +}); + +$('#short_labels').click( function (){ + $('.shortName').each( function() { + if ($(this).css("display") == "none"){ + $(this).css("display", "block"); + } + else { + $(this).css("display", "none"); + } + }); +}); + +$('#long_labels').click( function (){ + $('.verboseName').each( function() { + if ($(this).css("display") == "none"){ + $(this).css("display", "block"); + } + else { + $(this).css("display", "none"); + } + }); }); \ No newline at end of file |