#12882: jQuery.noConflict() in admin breaks site specific code with jQuery
-------------------------------------------+--------------------------------
          Reporter:  krej...@i3.cz         |         Owner:  jezdez      
            Status:  assigned              |     Milestone:  1.2         
         Component:  django.contrib.admin  |       Version:  SVN         
        Resolution:                        |      Keywords:  jQuery admin
             Stage:  Accepted              |     Has_patch:  0           
        Needs_docs:  0                     |   Needs_tests:  0           
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Changes (by jezdez):

  * summary:  jQuery.noConflict() in admin brokes site specific code with
              jQuery => jQuery.noConflict() in admin breaks
              site specific code with jQuery

Old description:

> JQuery javascipt included by django admin calls noConflict method (
> http://api.jquery.com/jQuery.noConflict/ ). This method removes variable
> $ shortcut from javascript global namespace.
> Site specific code can include own jQuery code to enrich admin pages. In
> this case, commonly used variable $ is undefined and page is broken.
>
> (In addition to described major problem, jQuery can be included twice
> (one by django and one by site) causing problem with strip of jQuery
> plugins after redefinition and jQuery version is also enforced by admin)
> Please make deeper analysis next time before change with relationship to
> around code.

New description:

 JQuery javascipt included by django admin calls noConflict method (
 http://api.jquery.com/jQuery.noConflict/ ). This method removes variable $
 shortcut from the global namespace.
 Site specific code can include an own jQuery code to enrich admin pages.
 In this case, commonly used variable $ is undefined and page is broken.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12882#comment:18>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to