/[drupal]/contributions/modules/livesearch/livesearch.js
ViewVC logotype

Diff of /contributions/modules/livesearch/livesearch.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.14, Wed May 9 05:26:42 2007 UTC revision 1.15, Sat Jul 21 05:07:00 2007 UTC
# Line 1  Line 1 
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 = {
# Line 86  $('input').ready(function() { Line 86  $('input').ready(function() {
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>');

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.2