mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
Toggle episode monitored status from the table
This commit is contained in:
parent
966b9d62b7
commit
3aa0507912
6 changed files with 52 additions and 14 deletions
|
@ -21,11 +21,8 @@ define(
|
|||
this.model.save();
|
||||
},
|
||||
|
||||
|
||||
render: function () {
|
||||
this.$el.empty();
|
||||
|
||||
|
||||
this.$el.html('<i />');
|
||||
|
||||
var name = this.column.get('name');
|
||||
|
@ -36,6 +33,13 @@ define(
|
|||
else {
|
||||
this.$('i').addClass(this.column.get('falseClass'));
|
||||
}
|
||||
|
||||
var tooltip = this.column.get('tooltip');
|
||||
|
||||
if (tooltip) {
|
||||
this.$('i').attr('title', tooltip);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
});
|
||||
|
|
|
@ -28,11 +28,12 @@ define(
|
|||
columns:
|
||||
[
|
||||
{
|
||||
name : 'ignored',
|
||||
name : 'monitored',
|
||||
label : '',
|
||||
cell : ToggleCell,
|
||||
trueClass : 'icon-bookmark-empty',
|
||||
falseClass: 'icon-bookmark'
|
||||
trueClass : 'icon-bookmark',
|
||||
falseClass: 'icon-bookmark-empty',
|
||||
tooltip : 'Toggle monitored status'
|
||||
},
|
||||
{
|
||||
name : 'episodeNumber',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue