Using 6.x-1.0

Javascript breaks when enabled.
My CKEditor disappears, and all collapsible fields break.

Comments

gumanov’s picture

Fixed by modifying autocomplete_hack.js
Added:

 if (typeof Drupal.ACDB != 'undefined')

Updated file:

/**
 * $Id$
 * Override the built-in autocomplete search
 */
Drupal.behaviors.autocomplete_hack = function() {
 if (typeof Drupal.ACDB != 'undefined') {
  Drupal.ACDB.prototype._search = Drupal.ACDB.prototype.search;

  Drupal.ACDB.prototype.search = function (searchString) {
    this._search(searchString.replace(/\//g, '~$~$~$~'));
  }
 }
};
gumanov’s picture

Issue summary: View changes

  • thinkyhead committed 10711dc on 6.x-1.x
    Issue #2358627 by thinkyhead: Check for Drupal.ACDB to prevent halting...
thinkyhead’s picture

Assigned: Unassigned » thinkyhead
Status: Active » Closed (fixed)

Good catch! The code already checks for this in the D7 version, but it never got back-ported to 6.x. This is now fixed in Autocomplete Hack 6.x-1.1 and 7.x-1.1 (and also for Autocomplete Post module) along with some other issues.

gumanov’s picture

Thanks! v1.1 works great :)