1
0
Fork 0
forked from 0x2620/oxjs

fix video player bugs

This commit is contained in:
rlx 2011-12-23 07:15:40 +00:00
commit f062c6001e
2 changed files with 14 additions and 7 deletions

View file

@ -1293,9 +1293,15 @@ Ox.List = function(options, self) {
}, rest ? {
rest: rest
} : {}));
self.preview && that.triggerEvent('openpreview', {
ids: ids
});
if (self.preview) {
if (ids.length) {
that.triggerEvent('openpreview', {
ids: ids
});
} else {
that.triggerEvent('closepreview');
}
}
}
});
}, 100);