diff --git a/app/assets/javascripts/templateFolderForm.js b/app/assets/javascripts/templateFolderForm.js index f3adfe5cf..5f9079fbf 100644 --- a/app/assets/javascripts/templateFolderForm.js +++ b/app/assets/javascripts/templateFolderForm.js @@ -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() {