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