@@ -237,30 +237,22 @@
if (data.outlier) {
$(row).addClass("outlier");
}
- $('td', row).eq(0).attr("align", "center");
- $('td', row).eq(0).attr("style", "padding: 2px 0px 0px 2px;");
+ $('td', row).eq(0).addClass("column_name-Checkbox")
$('td', row).eq(1).addClass("column_name-Index")
- $('td', row).eq(1).attr("align", "right");
- $('td', row).eq(1).attr("style", "padding: 2px 4px 0px 2px;");
$('td', row).eq(2).addClass("column_name-Sample")
$('td', row).eq(3).addClass("column_name-Value")
- $('td', row).eq(3).attr("style", "text-align: right; padding-top: 2px; padding-bottom: 0px;");
{% if sample_groups[0].se_exists() %}
- $('td', row).eq(4).attr("align", "center");
- $('td', row).eq(4).attr("style", "padding-left: 2px; padding-right: 2px;");
- $('td', row).eq(5).addClass("column_name-SE")
- $('td', row).eq(5).attr("style", "text-align: right; padding-top: 2px; padding-bottom: 0px;");
+ $('td', row).eq(4).addClass("column_name-PlusMinus")
+ $('td', row).eq(5).addClass("column_name-SE value_column")
{% if has_num_cases %}
$('td', row).eq(6).addClass("column_name-num_cases")
- $('td', row).eq(6).attr("style", "text-align: right; padding-top: 2px; padding-bottom: 0px;");
{% endif %} {% else %} {% if has_num_cases %}
$('td', row).eq(4).addClass("column_name-num_cases")
- $('td', row).eq(4).attr("style", "text-align: right; padding-top: 2px; padding-bottom: 0px;");
{% endif %} {% endif %}
{% if sample_groups[0].attributes|length > 0 %}
{% for attribute in sample_groups[0].attributes|sort() %}
$('td', row).eq(attribute_start_pos + {{ loop.index }}).addClass("column_name-{{ sample_groups[0].attributes[attribute].name }}")
- $('td', row).eq(attribute_start_pos + {{ loop.index }}).attr("style", "text-align: {{ sample_groups[0].attributes[attribute].alignment }}; padding-top: 2px; padding-bottom: 0px;")
+ $('td', row).eq(attribute_start_pos + {{ loop.index }}).attr("style", "text-align: {{ sample_groups[0].attributes[attribute].alignment }};")
{% endfor %}
{% endif %}
},
@@ -271,7 +263,7 @@
'orderDataType': "dom-checkbox",
'searchable' : false,
'render': function(data, type, row, meta) {
- return '
'
+ return '
'
}
},
{
@@ -289,15 +281,15 @@
}
},
{
- 'title': "
Value
",
+ 'title': "",
'orderDataType': "dom-input",
'type': "cust-txt",
'data': null,
'render': function(data, type, row, meta) {
if (data.value == null) {
- return '
'
+ return '
'
} else {
- return '
'
+ return '
'
}
}
}{% if sample_groups[0].se_exists() %},
@@ -311,28 +303,28 @@
}
},
{
- 'title': "
SE
",
+ 'title': "",
'orderDataType': "dom-input",
'type': "cust-txt",
'data': null,
'render': function(data, type, row, meta) {
if (data.variance == null) {
- return '
'
+ return '
'
} else {
- return '
'
+ return '
'
}
}
}{% endif %}{% if has_num_cases %},
{
- 'title': "
N
",
+ 'title': "",
'orderDataType': "dom-input",
'type': "cust-txt",
'data': null,
'render': function(data, type, row, meta) {
if (data.num_cases == null || data.num_cases == undefined) {
- return '
'
+ return '
'
} else {
- return '
'
+ return '
'
}
}
}{% endif %}{% if sample_groups[0].attributes|length > 0 %}{% for attribute in sample_groups[0].attributes|sort() %},
@@ -387,25 +379,16 @@
if (data.outlier) {
$(row).addClass("outlier");
}
- $('td', row).eq(0).attr("align", "center");
- $('td', row).eq(0).attr("style", "padding: 2px 0px 0px 2px;");
$('td', row).eq(1).addClass("column_name-Index")
- $('td', row).eq(1).attr("align", "right");
- $('td', row).eq(1).attr("style", "padding: 2px 4px 0px 2px;");
$('td', row).eq(2).addClass("column_name-Sample")
$('td', row).eq(3).addClass("column_name-Value")
- $('td', row).eq(3).attr("style", "text-align: right; padding-top: 2px; padding-bottom: 0px;");
{% if sample_groups[1].se_exists() %}
- $('td', row).eq(4).attr("align", "center");
- $('td', row).eq(4).attr("style", "padding-left: 2px; padding-right: 2px;");
+ $('td', row).eq(4).addClass("column_name-PlusMinus")
$('td', row).eq(5).addClass("column_name-SE")
- $('td', row).eq(5).attr("style", "text-align: right; padding-top: 2px; padding-bottom: 0px;");
{% if has_num_cases %}
$('td', row).eq(6).addClass("column_name-num_cases")
- $('td', row).eq(6).attr("style", "text-align: right; padding-top: 2px; padding-bottom: 0px;");
{% endif %} {% else %} {% if has_num_cases %}
$('td', row).eq(4).addClass("column_name-num_cases")
- $('td', row).eq(4).attr("style", "text-align: right; padding-top: 2px; padding-bottom: 0px;");
{% endif %} {% endif %}
{% if sample_groups[1].attributes|length > 0 %}
{% for attribute in sample_groups[1].attributes|sort() %}
@@ -421,7 +404,7 @@
'orderDataType': "dom-checkbox",
'searchable' : false,
'render': function(data, type, row, meta) {
- return '
'
+ return '
'
}
},
{
@@ -439,15 +422,15 @@
}
},
{
- 'title': "
Value
",
+ 'title': "",
'orderDataType': "dom-input",
'type': "cust-txt",
'data': null,
'render': function(data, type, row, meta) {
if (data.value == null) {
- return '
'
+ return '
'
} else {
- return '
'
+ return '
'
}
}
}{% if sample_groups[1].se_exists() %},
@@ -461,28 +444,28 @@
}
},
{
- 'title': "
SE
",
+ 'title': "",
'orderDataType': "dom-input",
'type': "cust-txt",
'data': null,
'render': function(data, type, row, meta) {
if (data.variance == null) {
- return '
'
+ return '
'
} else {
- return '
'
+ return '
'
}
}
}{% endif %}{% if has_num_cases %},
{
- 'title': "
N
",
+ 'title': "",
'orderDataType': "dom-input",
'type': "cust-txt",
'data': null,
'render': function(data, type, row, meta) {
if (data.num_cases == null) {
- return '
'
+ return '
'
} else {
- return '
'
+ return '
'
}
}
}{% endif %}{% if sample_groups[1].attributes|length > 0 %}{% for attribute in sample_groups[1].attributes|sort() %},
--
cgit v1.2.3