forked from 0x2620/pandora
local variable, remove duplicate code
This commit is contained in:
parent
1ce1ca7d89
commit
f790b039da
2 changed files with 1 additions and 8 deletions
|
@ -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});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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']
|
||||
|
|
Loading…
Reference in a new issue