kezzine / django-genericadmin

Automatically exported from code.google.com/p/django-genericadmin
0 stars 0 forks source link

Can't find variable: $ #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. add genericadmin to INSTALLED_APPS
2. fix URLconf to have the named route required by the JS (see my comment on 
Issue 6) 
3. Access an admin page featuring a generic relationship

What is the expected output? What do you see instead?
I see the standard generic relation setup (ie, associated model field, content 
type field, object id 
field)
In Firefox/Firefbug and Safari/Inspect Element, i get a report of a problem on 
line 19 of /add/:

"Can't find variable: $"

Note that Jquery is apparently being pulled down from Google fine

What version of the product are you using? 
Trunk checkout, on Django 1.1

Please provide any additional information below.

Original issue reported on code.google.com by steveja...@gmail.com on 13 Aug 2009 at 9:44

GoogleCodeExporter commented 9 years ago
jQuery (1.4.2) is being loaded in Django SVN trunk (1.2) with the 'noconflict' 
option
enabled. As such, you can't call '$' directly, unless you wrap all code using 
it in a
function that passes in the jQuery object.

Attached patch fixes this.

Original comment by jazepst...@gmail.com on 18 May 2010 at 1:57

Attachments: