Correctly select edit quality. fix #736

This commit is contained in:
Ruud
2012-08-26 14:31:38 +02:00
parent b599bc384b
commit ada4710a0a
+7 -4
View File
@@ -73,20 +73,23 @@ window.addEvent('domready', function(){
new Element('option', {
'text': alt.title
}).inject(self.title_select);
if(alt['default'])
self.title_select.set('value', alt.title);
});
Quality.getActiveProfiles().each(function(profile){
var profile_id = profile.id ? profile.id : profile.data.id;
new Element('option', {
'value': profile.id ? profile.id : profile.data.id,
'value': profile_id,
'text': profile.label ? profile.label : profile.data.label
}).inject(self.profile_select);
if(self.movie.profile)
self.profile_select.set('value', profile.id ? profile.id : profile.data.id);
if(self.movie.profile && self.movie.profile.data.id == profile_id)
self.profile_select.set('value', profile_id);
});
}