diff --git a/app/assets/javascripts/discourse/components/topic-list.js.es6 b/app/assets/javascripts/discourse/components/topic-list.js.es6 index 260bddb756e..5b214be7aa7 100644 --- a/app/assets/javascripts/discourse/components/topic-list.js.es6 +++ b/app/assets/javascripts/discourse/components/topic-list.js.es6 @@ -125,6 +125,14 @@ export default Ember.Component.extend({ this.rerender(); }); + onClick('button.bulk-select-all', function(){ + $('input.bulk-select:not(:checked)').click(); + }); + + onClick('button.bulk-clear-all', function(){ + $('input.bulk-select:checked').click(); + }); + onClick('th.sortable', function(e2){ this.sendAction('changeSort', e2.data('sort-order')); this.rerender(); diff --git a/app/assets/javascripts/discourse/templates/topic-list-header-column.raw.hbs b/app/assets/javascripts/discourse/templates/topic-list-header-column.raw.hbs index 3d3da42d96a..ab53f6f29cf 100644 --- a/app/assets/javascripts/discourse/templates/topic-list-header-column.raw.hbs +++ b/app/assets/javascripts/discourse/templates/topic-list-header-column.raw.hbs @@ -2,6 +2,12 @@ {{~#if showBulkToggle}} {{/if ~}} + {{~#if bulkSelectEnabled}} + + + + + {{/if ~}} {{view.localizedName}} {{~#if view.isSorting}} diff --git a/app/assets/javascripts/discourse/templates/topic-list-header.raw.hbs b/app/assets/javascripts/discourse/templates/topic-list-header.raw.hbs index 4714a3cedb7..e5d1f506d6d 100644 --- a/app/assets/javascripts/discourse/templates/topic-list-header.raw.hbs +++ b/app/assets/javascripts/discourse/templates/topic-list-header.raw.hbs @@ -1,9 +1,9 @@ {{#if bulkSelectEnabled}} -