It looks like order is important. I don't think there's much you can do other than declare it twice in this case.
On Aug 5, 8:59 am, Alessandro Ronchi <alessandro.ron...@soasi.com> wrote: > If I load jquery-ui (a custom full download) in my admin I get this script > error: > c is undefined > > If I load 2 times jquery with > > ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ > class Media: > js = ( > settings.MEDIA_URL + 'admin/jquery-ui/js/jquery-1.4.2.min.js', > settings.MEDIA_URL + > 'admin/jquery-ui/js/jquery-ui-1.8.2.custom.min.js', > > ) > ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ > It works. > There is no diff between my settings.MEDIA_URL + > 'admin/jquery-ui/js/jquery-1.4.2.min.js', and > django/contrib/admin/media/js/jquery-min.js > but the first come after jquery.init.js > > // Puts the included jQuery into our own namespace > var django = { > "jQuery": jQuery.noConflict(true) > > }; > > Is there a way to avoid attaching two times the same jquery library in > admin? > > Thanks in advance, > > -- > Alessandro Ronchihttp://www.soasi.com > > Hobby & Giochihttp://hobbygiochi.comhttp://www.facebook.com/hobbygiochi -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.