You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
432 B
20 lines
432 B
var Backgrid = require('backgrid');
|
|
|
|
module.exports = Backgrid.Row.extend({
|
|
className : 'select-episode-row',
|
|
|
|
events : {
|
|
'click' : '_toggle'
|
|
},
|
|
|
|
_toggle : function(e) {
|
|
|
|
if (e.target.type === 'checkbox') {
|
|
return;
|
|
}
|
|
|
|
var checked = this.$el.find('.select-row-cell :checkbox').prop('checked');
|
|
|
|
this.model.trigger('backgrid:select', this.model, !checked);
|
|
}
|
|
}); |