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({
|
.bindEvent({
|
||||||
click: function() {
|
click: function() {
|
||||||
var _this = this;
|
data.mediastate = 'transferring';
|
||||||
this.options({disabled: true});
|
that.updateElement(data, $data);
|
||||||
oml.api.addListItems({
|
oml.api.addListItems({
|
||||||
items: [ui.item],
|
items: [ui.item],
|
||||||
list: ':'
|
list: ':'
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
_this.options({disabled: false});
|
// ...
|
||||||
data.mediastate = 'transferring';
|
|
||||||
that.updateElement(data, $data);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in a new issue