UI Cleanup - Updated System, Tags and Wanted subtrees.

This commit is contained in:
Taloth Saldono 2015-02-14 11:18:21 +01:00
parent d6079a701c
commit 32fc68b9df
46 changed files with 1008 additions and 643 deletions

View file

@ -2,20 +2,29 @@ var NzbDroneCell = require('../../Cells/NzbDroneCell');
var CommandController = require('../../Commands/CommandController');
module.exports = NzbDroneCell.extend({
className : 'execute-task-cell',
events : {"click .x-execute" : '_executeTask'},
render : function(){
className : 'execute-task-cell',
events : {
'click .x-execute' : '_executeTask'
},
render : function() {
this.$el.empty();
var name = this.model.get('name');
var task = this.model.get('taskName');
this.$el.html('<i class="icon-refresh icon-can-spin x-execute" title="Execute {0}"></i>'.format(name));
CommandController.bindToCommand({
element : this.$el.find('.x-execute'),
command : {name : task}
command : { name : task }
});
return this;
},
_executeTask : function(){
CommandController.Execute(this.model.get('taskName'), {name : this.model.get('taskName')});
_executeTask : function() {
CommandController.Execute(this.model.get('taskName'), { name : this.model.get('taskName') });
}
});