diff --git a/static/js/metadataDialog.js b/static/js/metadataDialog.js index 944832e1..15410f29 100644 --- a/static/js/metadataDialog.js +++ b/static/js/metadataDialog.js @@ -65,7 +65,7 @@ pandora.ui.metadataDialog = function(data) { title: Ox._('Update Metadata') }); } - + function updateDialog() { return Ox.Dialog({ buttons: [ @@ -222,11 +222,11 @@ pandora.ui.metadataDialog = function(data) { imdb.title = imdb.originalTitle; } keys.forEach(function(key, index) { - var isEqual = Ox.isEqual(data[key], imdb[key]) || ( - isEmpty(data[key]) && isEmpty(imdb[key]) + var isEqual = Ox.isEqual(data[getKey(key)], imdb[key]) || ( + isEmpty(data[getKey(key)]) && isEmpty(imdb[key]) ), checked = isEqual ? [true, true] - : isEmpty(data[key]) && !isEmpty(imdb[key]) ? [false, true] + : isEmpty(data[getKey(key)]) && !isEmpty(imdb[key]) ? [false, true] : [true, false]; if (index > 0) { $('