fix a bug in id dialog
This commit is contained in:
parent
cdeb38b7e8
commit
e3f5110643
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ pandora.ui.idDialog = function(data) {
|
|||
var checkboxes = [];
|
||||
$content = Ox.Element()
|
||||
.css({padding: '13px', overflowY: 'auto'});
|
||||
if (result.data.items) {
|
||||
if (result.data.items.length) {
|
||||
['title', 'director', 'year'].forEach(function(key) {
|
||||
$input.push(
|
||||
Ox.Input({
|
||||
|
@ -138,7 +138,7 @@ pandora.ui.idDialog = function(data) {
|
|||
? pandora.api.findId
|
||||
: Ox.noop
|
||||
)({id: data.imdbId}, function(result_) {
|
||||
if (result_ && result_.data.items) {
|
||||
if (result_ && result_.data.items.length) {
|
||||
checkboxes.push(
|
||||
{
|
||||
id: data.imdbId,
|
||||
|
|
Loading…
Reference in a new issue