Correctly select edit quality. fix #736
This commit is contained in:
@@ -73,20 +73,23 @@ window.addEvent('domready', function(){
|
|||||||
new Element('option', {
|
new Element('option', {
|
||||||
'text': alt.title
|
'text': alt.title
|
||||||
}).inject(self.title_select);
|
}).inject(self.title_select);
|
||||||
|
|
||||||
if(alt['default'])
|
if(alt['default'])
|
||||||
self.title_select.set('value', alt.title);
|
self.title_select.set('value', alt.title);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
Quality.getActiveProfiles().each(function(profile){
|
Quality.getActiveProfiles().each(function(profile){
|
||||||
|
|
||||||
|
var profile_id = profile.id ? profile.id : profile.data.id;
|
||||||
|
|
||||||
new Element('option', {
|
new Element('option', {
|
||||||
'value': profile.id ? profile.id : profile.data.id,
|
'value': profile_id,
|
||||||
'text': profile.label ? profile.label : profile.data.label
|
'text': profile.label ? profile.label : profile.data.label
|
||||||
}).inject(self.profile_select);
|
}).inject(self.profile_select);
|
||||||
|
|
||||||
if(self.movie.profile)
|
if(self.movie.profile && self.movie.profile.data.id == profile_id)
|
||||||
self.profile_select.set('value', profile.id ? profile.id : profile.data.id);
|
self.profile_select.set('value', profile_id);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user