Browse Source

[FIX] keypress to keyup

pull/1/head
Ildar Nasyrov 9 years ago
parent
commit
6806d71b4e
  1. 4
      static/src/js/mail_recovery.js

4
static/src/js/mail_recovery.js

@ -5,7 +5,7 @@ openerp.mail_recovery = function (session) {
bind_events: function () {
var self = this;
this.$('textarea').on('focus', self.on_focus_textarea);
this.$('textarea').on('keypress', self.on_keypress_textarea);
this.$('textarea').on('keyup', self.on_keyup_textarea);
this._super();
},
on_focus_textarea: function(event) {
@ -14,7 +14,7 @@ openerp.mail_recovery = function (session) {
$input.val(window.localStorage['message_storage']);
}
},
on_keypress_textarea: function(event) {
on_keyup_textarea: function(event) {
window.localStorage['message_storage'] = $(event.target).val();
},
on_message_post: function (event) {

Loading…
Cancel
Save