From 7a47ca96ed3fad5c5bcb2dcba000bd65c4a53c95 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 26 Feb 2012 21:38:56 +0100 Subject: [PATCH] Use profile list as array, not object --- couchpotato/core/plugins/movie/static/search.js | 2 +- couchpotato/static/scripts/page/wanted.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/plugins/movie/static/search.js b/couchpotato/core/plugins/movie/static/search.js index 3f29d139..f2f14c4f 100644 --- a/couchpotato/core/plugins/movie/static/search.js +++ b/couchpotato/core/plugins/movie/static/search.js @@ -318,7 +318,7 @@ Block.Search.Item = new Class({ }).inject(self.title_select) }) - Object.each(Quality.getActiveProfiles(), function(profile){ + Quality.getActiveProfiles().each(function(profile){ new Element('option', { 'value': profile.id ? profile.id : profile.data.id, 'text': profile.label ? profile.label : profile.data.label diff --git a/couchpotato/static/scripts/page/wanted.js b/couchpotato/static/scripts/page/wanted.js index c2ac6c08..bb68dc29 100644 --- a/couchpotato/static/scripts/page/wanted.js +++ b/couchpotato/static/scripts/page/wanted.js @@ -75,7 +75,7 @@ window.addEvent('domready', function(){ }).inject(self.title_select); }); - Object.each(Quality.getActiveProfiles(), function(profile){ + Quality.getActiveProfiles().each(function(profile){ new Element('option', { 'value': profile.id ? profile.id : profile.data.id, 'text': profile.label ? profile.label : profile.data.label