only switch button to transferring after download api returns
This commit is contained in:
parent
1266fb9133
commit
0311a33814
1 changed files with 5 additions and 3 deletions
|
@ -184,10 +184,12 @@ oml.ui.infoView = function(externalData, isMixed) {
|
|||
})
|
||||
.bindEvent({
|
||||
click: function() {
|
||||
var _this = this;
|
||||
this.options({disabled: true});
|
||||
oml.api.download({id: ui.item}, function(result) {
|
||||
_this.options({disabled: false});
|
||||
data.mediastate = 'transferring';
|
||||
that.updateElement(data, $data);
|
||||
oml.api.download({id: ui.item}, function(result) {
|
||||
// ...
|
||||
});
|
||||
}
|
||||
}),
|
||||
|
|
Loading…
Reference in a new issue