alecpl
2010-10-05 c288f9969e113cb7dbd38bf05167cc8e94e007ff
program/js/app.js
@@ -2768,9 +2768,8 @@
  this.init_address_input_events = function(obj)
  {
    var handler = function(e){ return ref.ksearch_keypress(e,this); };
    obj.bind((bw.safari || bw.ie ? 'keydown' : 'keypress'), handler);
    obj.attr('autocomplete', 'off');
    obj[bw.ie || bw.safari || bw.chrome ? 'keydown' : 'keypress'](function(e){ return ref.ksearch_keydown(e, this); })
      .attr('autocomplete', 'off');
  };
  // checks the input fields before sending a message
@@ -3267,8 +3266,9 @@
  this.sent_successfully = function(type, msg)
  {
    this.list_mailbox();
    this.display_message(msg, type, true);
    // before redirect we need to wait some time for Chrome (#1486177)
    window.setTimeout(function(){ ref.list_mailbox(); }, 500);
  };
@@ -3277,7 +3277,7 @@
  /*********************************************************/
  // handler for keyboard events on address-fields
  this.ksearch_keypress = function(e, obj)
  this.ksearch_keydown = function(e, obj)
  {
    if (this.ksearch_timer)
      clearTimeout(this.ksearch_timer);