Show snatched in wanted list
This commit is contained in:
@@ -27,12 +27,17 @@ var MovieList = new Class({
|
||||
self.createNavigation();
|
||||
|
||||
Object.each(self.movies, function(info){
|
||||
|
||||
// Attach proper actions
|
||||
var a = self.options.actions
|
||||
var actions = a[info.status.identifier.capitalize()] || a.Wanted || {};
|
||||
|
||||
var m = new Movie(self, {
|
||||
'actions': self.options.actions
|
||||
'actions': actions
|
||||
}, info);
|
||||
$(m).inject(self.el);
|
||||
m.fireEvent('injected');
|
||||
|
||||
|
||||
if(self.options.navigation){
|
||||
var first_char = m.getTitle().substr(0, 1);
|
||||
self.activateLetter(first_char);
|
||||
@@ -71,7 +76,7 @@ var MovieList = new Class({
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
|
||||
activateLetter: function(letter){
|
||||
this.letters[letter].addClass('active');
|
||||
},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
var Movie = new Class({
|
||||
|
||||
Extends: BlockBase,
|
||||
|
||||
|
||||
action: {},
|
||||
|
||||
initialize: function(self, options, data){
|
||||
@@ -45,7 +45,7 @@ var Movie = new Class({
|
||||
self.actions = new Element('div.actions')
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
self.profile.get('types').each(function(type){
|
||||
var q = Quality.getQuality(type.quality_id);
|
||||
new Element('span', {
|
||||
|
||||
Reference in New Issue
Block a user