alecpl
2008-07-28 3ac95d5a673db544d7ceeaa9e5fca766cb738120
program/js/googiespell.js
old mode 100755 new mode 100644
@@ -301,7 +301,7 @@
    var onreadystatechange = function () {
      if (req.readyState == 4) {
        try {
          status = req.status;
          var status = req.status;
        }
        catch(e) {};
        if(status == 200 || status == 304 || req.responseText == null) {
@@ -1035,16 +1035,24 @@
}
GoogieSpell.prototype.removeIndicator = function(elm) {
  AJS.removeElement(this.indicator);
  // modified by roundcube
  if (window.rcube_webmail_client)
    rcube_webmail_client.set_busy(false);
  //AJS.removeElement(this.indicator);
}
GoogieSpell.prototype.appendIndicator = function(elm) {
  // modified by roundcube
  if (window.rcube_webmail_client)
    rcube_webmail_client.set_busy(true, 'checking');
/*
  var img = AJS.IMG({'src': this.img_dir + 'indicator.gif', 'style': 'margin-right: 5px;'});
  img.style.width = "16px";
  img.style.height = "16px";
  this.indicator = img;
  img.style.textDecoration = "none";
  AJS.insertBefore(img, elm);
  */
}
/****
@@ -1239,6 +1247,8 @@
    me.spellCheck(span_chck);
  }
  AJS.appendChildNodes(this.spell_container, span_chck, " ", this.switch_lan_pic);
  // modified by roundcube
  this.check_link = span_chck;
}
GoogieSpell.prototype.setLanguages = function(lang_dict) {
@@ -1248,7 +1258,7 @@
GoogieSpell.prototype.decorateTextarea = function(id, /*optional*/spell_container_id, force_width) {
  var me = this;
  if(typeof(id) == "string")
    this.text_area = AJS.getElement(id);
  else