forked from 0x2620/pandora
fix import media dialog
This commit is contained in:
parent
6f979c1f9d
commit
8a04bb9625
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ pandora.ui.importMediaDialog = function(options) {
|
||||||
var values = Ox.map(pandora.site.importMetadata, function(value, key) {
|
var values = Ox.map(pandora.site.importMetadata, function(value, key) {
|
||||||
var type = Ox.getObjectById(pandora.site.itemKeys, key).type;
|
var type = Ox.getObjectById(pandora.site.itemKeys, key).type;
|
||||||
infoKeys.forEach(function(infoKey) {
|
infoKeys.forEach(function(infoKey) {
|
||||||
infoValue = info[infoKey];
|
var infoValue = info[infoKey];
|
||||||
if (key == 'year' && infoKey == 'date') {
|
if (key == 'year' && infoKey == 'date') {
|
||||||
infoValue = infoValue.substr(0, 4);
|
infoValue = infoValue.substr(0, 4);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue