fix lists, handle async requests
This commit is contained in:
parent
39ea0437df
commit
d451eb3063
9 changed files with 25 additions and 30 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue