alecpl
2009-02-24 7b0eac9b175d306537c74703e6189362d79d7beb
- Fix IE problem with mouse click autocomplete (#1485739)


2 files modified
16 ■■■■■ changed files
CHANGELOG 4 ●●●● patch | view | raw | blame | history
program/js/app.js 12 ●●●●● patch | view | raw | blame | history
CHANGELOG
@@ -1,6 +1,10 @@
CHANGELOG RoundCube Webmail
---------------------------
2009/02/24 (alec)
----------
- Fix IE problem with mouse click autocomplete (#1485739)
2009/02/18 (alec)
----------
- Fix html body washing on reply/forward + fix attachments handling (#1485676)
program/js/app.js
@@ -2475,13 +2475,13 @@
    var inp_value = this.ksearch_input.value.toLowerCase();
    var cpos = this.get_caret_pos(this.ksearch_input);
    var p = inp_value.lastIndexOf(this.ksearch_value, cpos);
    // replace search string with full address
    var pre = this.ksearch_input.value.substring(0, p);
    var end = this.ksearch_input.value.substring(p+this.ksearch_value.length, this.ksearch_input.value.length);
    var insert  = this.env.contacts[id]+', ';
    this.ksearch_input.value = pre + insert + end;
    // set caret to insert pos
    cpos = p+insert.length;
    if (this.ksearch_input.setSelectionRange)
@@ -2591,11 +2591,11 @@
  
  this.ksearch_click = function(node)
  {
    if (this.ksearch_input)
      this.ksearch_input.focus();
    this.insert_recipient(node._rcm_id);
    this.ksearch_hide();
    if (ref.ksearch_input)
      this.ksearch_input.focus();
  };
  this.ksearch_blur = function()
@@ -4006,7 +4006,6 @@
    {
    if (typeof(obj.selectionEnd)!='undefined')
      return obj.selectionEnd;
    else if (document.selection && document.selection.createRange)
      {
      var range = document.selection.createRange();
@@ -4024,7 +4023,6 @@
      return p<=obj.value.length ? p : -1;
      }
    else
      return obj.value.length;
    };