aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-06-07 21:31:39 +0000
committerzsloan2021-06-07 21:31:39 +0000
commit912396072f4c9627e3e4d125c28236775c4811dc (patch)
tree5447b60e362ad31448ccd2b5acbbfa32327ea216 /wqflask
parent752c115008a8eb992fb9fca5bd8bd8c68dbe42df (diff)
downloadgenenetwork2-912396072f4c9627e3e4d125c28236775c4811dc.tar.gz
Change padding for checkbox cells + removed set widths for Dataset and Description columns (so they can adjust with the window width) and increased the amount of text displayed
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/gsearch_gene.html20
1 files changed, 9 insertions, 11 deletions
diff --git a/wqflask/wqflask/templates/gsearch_gene.html b/wqflask/wqflask/templates/gsearch_gene.html
index e951c0b1..5549ac8a 100644
--- a/wqflask/wqflask/templates/gsearch_gene.html
+++ b/wqflask/wqflask/templates/gsearch_gene.html
@@ -117,26 +117,26 @@
$('.trait_checkbox:checkbox').on("change", change_buttons);
},
'createdRow': function ( row, data, index ) {
- $('td', row).eq(0).attr("style", "text-align: center; padding: 4px 10px 2px 10px;");
+ $('td', row).eq(0).attr("style", "text-align: center; padding: 0px 10px 2px 13px;");
$('td', row).eq(1).attr("align", "right");
$('td', row).eq(4).attr('title', $('td', row).eq(4).text());
- if ($('td', row).eq(4).text().length > 20) {
- $('td', row).eq(4).text($('td', row).eq(4).text().substring(0, 20));
+ if ($('td', row).eq(4).text().length > 30) {
+ $('td', row).eq(4).text($('td', row).eq(4).text().substring(0, 30));
$('td', row).eq(4).text($('td', row).eq(4).text() + '...')
}
$('td', row).eq(5).attr('title', $('td', row).eq(5).text());
- if ($('td', row).eq(5).text().length > 20) {
- $('td', row).eq(5).text($('td', row).eq(5).text().substring(0, 20));
+ if ($('td', row).eq(5).text().length > 35) {
+ $('td', row).eq(5).text($('td', row).eq(5).text().substring(0, 35));
$('td', row).eq(5).text($('td', row).eq(5).text() + '...')
}
$('td', row).eq(6).attr('title', $('td', row).eq(6).text());
- if ($('td', row).eq(6).text().length > 35) {
- $('td', row).eq(6).text($('td', row).eq(6).text().substring(0, 35));
+ if ($('td', row).eq(6).text().length > 60) {
+ $('td', row).eq(6).text($('td', row).eq(6).text().substring(0, 60));
$('td', row).eq(6).text($('td', row).eq(6).text() + '...')
}
$('td', row).eq(8).attr('title', $('td', row).eq(8).text());
- if ($('td', row).eq(8).text().length > 45) {
- $('td', row).eq(8).text($('td', row).eq(8).text().substring(0, 45));
+ if ($('td', row).eq(8).text().length > 60) {
+ $('td', row).eq(8).text($('td', row).eq(8).text().substring(0, 60));
$('td', row).eq(8).text($('td', row).eq(8).text() + '...')
}
$('td', row).slice(10,14).attr("align", "right");
@@ -201,7 +201,6 @@
{
'title': "Dataset",
'type': "natural",
- 'width': "300px",
'data': "dataset_fullname"
},
{
@@ -213,7 +212,6 @@
{
'title': "Description",
'type': "natural",
- 'width': "300px",
'data': null,
'render': function(data, type, row, meta) {
try {