summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-07-19 20:21:53 +0000
committerGerrit Code Review <review@openstack.org>2017-07-19 20:21:53 +0000
commit79b0ebbd7ef4086896ee501dc8c9b3eb546cd17c (patch)
tree5d5ad4e78639979b818802ca17da08141dc7f277
parente109003b7844b1db0cd6e8c7a83c7eb6975fa9d5 (diff)
parent352be501fc6ea0b71710a77e77e92d8ff4aaa2f0 (diff)
downloadhorizon-79b0ebbd7ef4086896ee501dc8c9b3eb546cd17c.tar.gz
Merge "There is problem in UpdateRow of Horizon page." into stable/ocata
-rw-r--r--horizon/static/horizon/js/horizon.tables.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/horizon/static/horizon/js/horizon.tables.js b/horizon/static/horizon/js/horizon.tables.js
index 611acb37e..dfea1529b 100644
--- a/horizon/static/horizon/js/horizon.tables.js
+++ b/horizon/static/horizon/js/horizon.tables.js
@@ -459,7 +459,7 @@ $.tablesorter.addParser({
horizon.datatables.update_footer_count = function (el, modifier) {
var $el = $(el),
- $browser, $footer, row_count, footer_text_template, footer_text;
+ $browser, $header, $footer, row_count, footer_text_template, footer_text;
if (!modifier) {
modifier = 0;
}
@@ -469,6 +469,7 @@ horizon.datatables.update_footer_count = function (el, modifier) {
$footer = $browser.find('.tfoot span.content_table_count');
}
else {
+ $header = $el.find('thead span.table_count');
$footer = $el.find('tfoot span.table_count');
}
row_count = $el.find('tbody tr:visible').length + modifier - $el.find('.empty').length;
@@ -478,6 +479,7 @@ horizon.datatables.update_footer_count = function (el, modifier) {
} else {
footer_text = '';
}
+ $header.text(footer_text);
$footer.text(footer_text);
return row_count;
};