info view: update download button immediately
This commit is contained in:
parent
6758394594
commit
f27d09235d
1 changed files with 3 additions and 5 deletions
|
@ -188,15 +188,13 @@ oml.ui.infoView = function(externalData, isMixed) {
|
|||
})
|
||||
.bindEvent({
|
||||
click: function() {
|
||||
var _this = this;
|
||||
this.options({disabled: true});
|
||||
data.mediastate = 'transferring';
|
||||
that.updateElement(data, $data);
|
||||
oml.api.addListItems({
|
||||
items: [ui.item],
|
||||
list: ':'
|
||||
}, function(result) {
|
||||
_this.options({disabled: false});
|
||||
data.mediastate = 'transferring';
|
||||
that.updateElement(data, $data);
|
||||
// ...
|
||||
});
|
||||
}
|
||||
}),
|
||||
|
|
Loading…
Reference in a new issue