diff --git a/CHANGELOG b/CHANGELOG
index 8057d8208d..6c3b7983e4 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,4 @@
+* Set treeview footer sticky on bottom
* Add get, in_ and contains methods to PYSON
* Manage deletable and writable state
* Support e-mail template
diff --git a/src/sao.less b/src/sao.less
index 312d129f57..b2398ca135 100644
--- a/src/sao.less
+++ b/src/sao.less
@@ -346,6 +346,15 @@ img.icon {
top: 0;
z-index: 100;
}
+ > tfoot > tr th {
+ background-color: @body-bg;
+ bottom: 0;
+ position: sticky;
+ z-index: 100;
+ & > label {
+ display: none;
+ }
+ }
> tbody > tr > td {
cursor: pointer;
> * {
@@ -763,9 +772,22 @@ input.column-boolean {
}
tfoot {
- > tr > td:empty,
- > tr > td > label {
- display: none !important;
+ background-color: @body-bg;
+ border: 1px solid @table-border-color;
+ position: sticky;
+ top: 0;
+ z-index: 100;
+ > tr {
+ & > td:empty,
+ > td > label {
+ display: none !important;
+ }
+ & th {
+ border: none;
+ & > label {
+ display: inline !important;
+ }
+ }
}
}
}
@@ -776,13 +798,13 @@ input.column-boolean {
}
table.responsive-header {
> tbody > tr {
- border: 1px solid #ccc;
+ border: 1px solid @table-border-color;
}
> tbody > tr > td,
> tfoot > tr > td {
/* Behave like a "row" */
border: none;
- border-bottom: 1px solid #eee;
+ border-bottom: 1px solid @table-border-color;
position: relative;
}
> tbody > tr,
diff --git a/src/view/tree.js b/src/view/tree.js
index 75795d8b2e..7d062181b0 100644
--- a/src/view/tree.js
+++ b/src/view/tree.js
@@ -109,7 +109,7 @@
var sum = jQuery('', {
'text': label,
});
- var aggregate = jQuery('', {
+ var aggregate = jQuery('', {
'class': 'value',
});
this.view.sum_widgets.set(column, [sum, aggregate]);
@@ -239,7 +239,6 @@
var sum_value = this.sum_widgets.get(column)[1];
total_cell.append(sum_label);
total_cell.append(sum_value);
- total_cell.attr('data-title', sum_label.text());
}
sum_row.append(total_cell);
column.footers.push(total_cell);