metadata dialog: better defaults

This commit is contained in:
rolux 2013-02-28 10:38:20 +05:30
parent f4ae57ea44
commit bcd3876ec1

View file

@ -210,8 +210,8 @@ pandora.ui.metadataDialog = function(data) {
Ox.isEmpty(data[key]) && Ox.isUndefined(imdb[key]) Ox.isEmpty(data[key]) && Ox.isUndefined(imdb[key])
), ),
checked = isEqual ? [true, true] checked = isEqual ? [true, true]
: !Ox.isUndefined(data[key]) && Ox.isUndefined(imdb[key]) ? [true, false] : Ox.isEmpty(data[key]) && !Ox.isUndefined(imdb[key]) ? [false, true]
: [false, true]; : [true, false];
if (index > 0) { if (index > 0) {
$('<div>') $('<div>')
.css({ .css({