mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 18:48:24 -04:00
Hide ‘nothing selected’ if nothing to select
It’s doesn’t make sense to show the state if the state can’t change. This is especially true when you’re in a brand new, empty service.
This commit is contained in:
@@ -111,6 +111,12 @@
|
|||||||
|
|
||||||
$('.template-list-selected-counter-count').html(numSelected);
|
$('.template-list-selected-counter-count').html(numSelected);
|
||||||
|
|
||||||
|
$('.template-list-selected-counter').toggle(this.hasCheckboxes());
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
this.hasCheckboxes = function() {
|
||||||
|
return !!this.$form.find('input:checkbox').length;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.countSelectedCheckboxes = function() {
|
this.countSelectedCheckboxes = function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user