Closed (fixed)
Project:
960 Robots
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jul 2011 at 19:32 UTC
Updated:
14 Sep 2011 at 21:01 UTC
1. Installed the latest 960 Robots theme on a D7 site and enabled
2. Noticed the 'Search...' jquery autofill feature was not working. This was actually the feature I was trying to replicate based on instructions in jQuery and JavaScript in Drupal 3: Adding JavaScript through a theme on Drupalize.me
3. Went into the Firebug console and found an errror
$ is not a function
http://gws/sites/all/themes/ninesixtyrobots/js/javascript.js?lo2zfq
Line 3
Comments
Comment #1
sethlbrown commentedNeed to wrap javascript.js function in (function($) {})(jQuery); per http://stackoverflow.com/questions/4681309/using-jquery-in-drupal-7/4681...
Comment #2
eojthebraveFixed: http://drupalcode.org/project/ninesixtyrobots.git/commit/d4d673a
Thanks for the heads up.