1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-21 07:06:39 +02:00

fix auto-type start

This commit is contained in:
antelle 2016-07-30 22:12:29 +03:00
parent cc7d9fab73
commit f4c3d59850
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ var AutoType = {
},
handleEvent: function(e) {
let entry = e && entry || null;
let entry = e && e.entry || null;
logger.debug('Auto type event', entry);
if (entry) {
this.hideWindow(() => { this.runAndHandleResult(entry); });

View File

@ -820,7 +820,7 @@ var DetailsView = Backbone.View.extend({
},
autoType: function() {
Backbone.emit('auto-type', { entry: this.model });
Backbone.trigger('auto-type', { entry: this.model });
}
});