Skip to content

Commit

Permalink
Make column toggle use entire li for clicks instead of checkbox. (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
aslagle committed Jul 5, 2015
1 parent 0dfd4d3 commit d2434fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/reactive_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,10 +510,10 @@ Template.reactiveTable.events({
getUpdateHandleForTemplate(template)(template.context);
},

'change .reactive-table-columns-dropdown input': function (event) {
'click .reactive-table-columns-dropdown li': function (event) {
var template = Template.instance();
var target = $(event.target);
var fieldId = target.attr('data-fieldid');
var target = $(event.currentTarget);
var fieldId = target.find('input').attr('data-fieldid');
var visibleFields = template.context.visibleFields.get();
var visibleField = _.findWhere(visibleFields, {fieldId: fieldId});
if (visibleField) {
Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
summary: "A reactive table designed for Meteor",
version: "0.8.4",
version: "0.8.5",
name: "aslagle:reactive-table",
git: "https://github.com/aslagle/reactive-table.git"
});
Expand Down

0 comments on commit d2434fe

Please sign in to comment.