Javascript error when in block mode with no block

matt2000 - May 14, 2008 - 07:03
Project:Live Search
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Great little module. I use it on as many sites as possible.

One little bug I've noticed:

If it's set to target the search block, but you're on a page where the search block doesn't appear, it triggers a javascript error, which can interfere with other javascript elements, like FCKeditor.

So you just need to add some logic to check if the block is actually being displayed before you add livesearch.js . I'm manually keeping it out on certain paths by checking $_GET['q'], but this is hackish.

#1

matt2000 - May 23, 2008 - 00:48

Live Search also is contributing to 'too much recursion' errors and therefore prevents IMCE from loading.

 
 

Drupal is a registered trademark of Dries Buytaert.