1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-22 22:15:17 -04:00

UI Cleanup - Updated Cells subtree.

This commit is contained in:
Taloth Saldono
2015-02-13 22:04:39 +01:00
parent 83b8ab8fe9
commit 7b5c0a952b
23 changed files with 334 additions and 143 deletions
+14 -7
View File
@@ -3,14 +3,18 @@ var NzbDroneCell = require('./NzbDroneCell');
var CommandController = require('../Commands/CommandController');
module.exports = NzbDroneCell.extend({
className : 'episode-actions-cell',
events : {
"click .x-automatic-search" : '_automaticSearch',
"click .x-manual-search" : '_manualSearch'
className : 'episode-actions-cell',
events : {
'click .x-automatic-search' : '_automaticSearch',
'click .x-manual-search' : '_manualSearch'
},
render : function(){
render : function() {
this.$el.empty();
this.$el.html('<i class="icon-search x-automatic-search" title="Automatic Search"></i>' + '<i class="icon-nd-manual-search x-manual-search" title="Manual Search"></i>');
CommandController.bindToCommand({
element : this.$el.find('.x-automatic-search'),
command : {
@@ -18,16 +22,19 @@ module.exports = NzbDroneCell.extend({
episodeIds : [this.model.get('id')]
}
});
this.delegateEvents();
return this;
},
_automaticSearch : function(){
_automaticSearch : function() {
CommandController.Execute('episodeSearch', {
name : 'episodeSearch',
episodeIds : [this.model.get('id')]
});
},
_manualSearch : function(){
_manualSearch : function() {
vent.trigger(vent.Commands.ShowEpisodeDetails, {
episode : this.cellValue,
hideSeriesLink : true,