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:
Chris Hill-Scott
2019-01-03 10:50:05 +00:00
parent aaf3322662
commit a9baa36005

View File

@@ -111,6 +111,12 @@
$('.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() {