mirror of
https://github.com/keeweb/keeweb.git
synced 2024-06-27 07:45:08 +02:00
fixed error after importing bad xml
This commit is contained in:
parent
34f91ac3af
commit
49b999693c
|
@ -556,7 +556,13 @@ const OpenView = Backbone.View.extend({
|
|||
this.$el.toggleClass('open--opening', true);
|
||||
this.inputEl.attr('disabled', 'disabled');
|
||||
this.busy = true;
|
||||
this.afterPaint(this.model.importFileWithXml.bind(this.model, this.params, this.openDbComplete.bind(this)));
|
||||
this.afterPaint(() => this.model.importFileWithXml(this.params, err => {
|
||||
if (err) {
|
||||
this.params.name = '';
|
||||
this.params.fileXml = null;
|
||||
}
|
||||
this.openDbComplete(err);
|
||||
}));
|
||||
},
|
||||
|
||||
toggleMore: function() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user