| 1 |
// $Id: livesearch.js,v 1.13 2007/05/08 06:19:14 kourge Exp $ |
// $Id: livesearch.js,v 1.14 2007/05/09 05:26:42 kourge Exp $ |
| 2 |
if (Drupal.jsEnabled) { // global killswitch |
if (Drupal.jsEnabled) { // global killswitch |
| 3 |
(function($) { // Dollar namespace scoping |
(function($) { // Dollar namespace scoping |
| 4 |
Drupal.LiveSearch = { |
Drupal.LiveSearch = { |
| 86 |
if (searchBox.length == 0) {return;} |
if (searchBox.length == 0) {return;} |
| 87 |
|
|
| 88 |
Drupal.LiveSearch.localizedTerm = localizedTerm = |
Drupal.LiveSearch.localizedTerm = localizedTerm = |
| 89 |
searchForm.find('input[@type=submit]').val(); |
$('input[@type=submit]', searchForm).val(); |
| 90 |
|
|
| 91 |
searchForm.end().addClass('live-search'); |
searchForm.addClass('live-search'); |
| 92 |
|
|
| 93 |
if (!settings.useCustomElement) { |
if (!settings.useCustomElement) { |
| 94 |
searchForm.append('<div id="' + Drupal.LiveSearch.id + '"></div>'); |
searchForm.append('<div id="' + Drupal.LiveSearch.id + '"></div>'); |