local variable, remove duplicate code

This commit is contained in:
j 2015-09-22 10:32:02 +01:00
parent 1ce1ca7d89
commit f790b039da
2 changed files with 1 additions and 8 deletions

View file

@ -375,14 +375,6 @@ pandora.ui.infoView = function(data) {
: '')
+ (result.data.year ? ' ' + result.data.year : '') + '</b>'
});
if (
Ox.contains(['title', 'director', 'year'], key)
&& ui.icons == 'posters'
) {
src = '/' + data.id + '/poster512.jpg?' + Ox.uid()
$icon.attr({src: src});
$reflectionIcon.attr({src: src});
}
});
}
}

View file

@ -519,6 +519,7 @@ pandora.ui.infoView = function(data) {
edit[key] = value ? value : null;
}
pandora.api.edit(edit, function(result) {
var src;
data[key] = result.data[key];
descriptions[key] && descriptions[key].options({
value: result.data[key + 'description']