forked from 0x2620/pandora
use keyMap for current data
This commit is contained in:
parent
679c51238e
commit
229b2c4cc8
1 changed files with 5 additions and 5 deletions
|
@ -222,11 +222,11 @@ pandora.ui.metadataDialog = function(data) {
|
||||||
imdb.title = imdb.originalTitle;
|
imdb.title = imdb.originalTitle;
|
||||||
}
|
}
|
||||||
keys.forEach(function(key, index) {
|
keys.forEach(function(key, index) {
|
||||||
var isEqual = Ox.isEqual(data[key], imdb[key]) || (
|
var isEqual = Ox.isEqual(data[getKey(key)], imdb[key]) || (
|
||||||
isEmpty(data[key]) && isEmpty(imdb[key])
|
isEmpty(data[getKey(key)]) && isEmpty(imdb[key])
|
||||||
),
|
),
|
||||||
checked = isEqual ? [true, true]
|
checked = isEqual ? [true, true]
|
||||||
: isEmpty(data[key]) && !isEmpty(imdb[key]) ? [false, true]
|
: isEmpty(data[getKey(key)]) && !isEmpty(imdb[key]) ? [false, true]
|
||||||
: [true, false];
|
: [true, false];
|
||||||
if (index > 0) {
|
if (index > 0) {
|
||||||
$('<div>')
|
$('<div>')
|
||||||
|
@ -242,7 +242,7 @@ pandora.ui.metadataDialog = function(data) {
|
||||||
margin: '3px 3px 5px 3px'
|
margin: '3px 3px 5px 3px'
|
||||||
})
|
})
|
||||||
.appendTo($data);
|
.appendTo($data);
|
||||||
$input[key] = [data[key], imdb[key]].map(function(v, i) {
|
$input[key] = [data[getKey(key)], imdb[key]].map(function(v, i) {
|
||||||
return Ox.InputGroup({
|
return Ox.InputGroup({
|
||||||
inputs: [
|
inputs: [
|
||||||
Ox.Checkbox({
|
Ox.Checkbox({
|
||||||
|
|
Loading…
Reference in a new issue