fix lists, handle async requests

This commit is contained in:
j 2014-05-26 18:02:41 +02:00
commit d451eb3063
9 changed files with 25 additions and 30 deletions

View file

@ -17,7 +17,7 @@ oml.ui.viewer = function() {
that.updateElement = function() {
item = ui.item;
if (item) {
if (item && item.length) {
oml.api.get({id: item, keys: ['mediastate']}, function(result) {
if (result.data.mediastate == 'available') {
$iframe = $iframe || Ox.Element('<iframe>').css({