summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/widget.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-04-17 14:38:43 +0200
committerPetr Vobornik <pvoborni@redhat.com>2014-06-10 10:23:27 +0200
commit9c1da611ea94046090dd88d320253d2cded5c76e (patch)
tree3a81a94686da6b021c194b46723b7cf88d57a49a /install/ui/src/freeipa/widget.js
parent21651d9d3f463f5c07355d0f4e52a8d3867d88cc (diff)
downloadfreeipa-9c1da611ea94046090dd88d320253d2cded5c76e.tar.gz
freeipa-9c1da611ea94046090dd88d320253d2cded5c76e.tar.xz
freeipa-9c1da611ea94046090dd88d320253d2cded5c76e.zip
webui: do not show empty table footer
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
Diffstat (limited to 'install/ui/src/freeipa/widget.js')
-rw-r--r--install/ui/src/freeipa/widget.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js
index da82dafea..863399f61 100644
--- a/install/ui/src/freeipa/widget.js
+++ b/install/ui/src/freeipa/widget.js
@@ -2393,6 +2393,12 @@ IPA.table_widget = function (spec) {
that.save_values = spec.save_values === undefined ? true : spec.save_values;
that['class'] = spec['class'];
+ /**
+ * Flag to render footer
+ * @property {boolean}
+ */
+ that.footer = spec.footer === undefined ? true : spec.footer;
+
that.pagination = spec.pagination;
that.current_page = 1;
that.total_pages = 1;
@@ -2521,7 +2527,9 @@ IPA.table_widget = function (spec) {
that.tbody.css('height', that.height);
}
- that.create_footer();
+ if (that.footer) {
+ that.create_footer();
+ }
that.set_enabled(that.enabled);
};
@@ -2911,7 +2919,9 @@ IPA.table_widget = function (spec) {
that.clear = function() {
that.empty();
- that.summary.text('');
+ if (that.footer) {
+ that.summary.text('');
+ }
};
//column initialization