Merge pull request #2626 from alphagov/empty-service-state-folders

Use grey buttons to add templates when service is new
This commit is contained in:
Chris Hill-Scott
2019-01-09 10:26:43 +00:00
committed by GitHub
4 changed files with 44 additions and 13 deletions

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() {