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