fix show_progress
This commit is contained in:
parent
488b2455b7
commit
bf0270323c
@ -161,12 +161,12 @@ class MsgboxComponent: Reactor.Component {
|
|||||||
}
|
}
|
||||||
var values = this.getValues();
|
var values = this.getValues();
|
||||||
if (this.callback) {
|
if (this.callback) {
|
||||||
var err = (this.callback(values, this.show_progress) || '').trim();
|
var err = this.callback(values, this.show_progress);
|
||||||
if (!err) {
|
if (!err) {
|
||||||
this.close();
|
this.close();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (err) this.show_progress(false, err);
|
if (err && err.trim()) this.show_progress(false, err);
|
||||||
} else {
|
} else {
|
||||||
this.close();
|
this.close();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user