Re: admin javacripts

2010-02-25 Thread hejsan
> This kind of sounds nice, but perhaps some sort of django namespace > could be introduced. Meaning $jQD -> dj.$: > > > > var dj = {}; > dj.$ = dj.jQuery = jQuery.noConflict(true); > This is a great idea, it also means that we could have a setting for specifying which libraries to add to t

Re: admin javacripts

2010-02-22 Thread George Karpenkov
> I like the option (2). wouldn't it mean that jquery library can potentially get downloaded/ parsed many times, which will slow down the page rendering? On Feb 22, 7:49 pm, Ales Zoulek wrote: > I like the option (2). > > Could some of you provide a patch for the ticket in the proposed fashion?

Re: admin javacripts

2010-02-22 Thread Ales Zoulek
I like the option (2). Could some of you provide a patch for the ticket in the proposed fashion? Ales -- Ales Zoulek +420 604 332 515 Jabber: ales.zou...@gmail.com -- On Sat, Feb 20, 2010

Re: admin javacripts

2010-02-20 Thread David Danier
> > > var $jQD = jQuery.noConflict(); > > > And somebody else includes this: > > > > Then Django's version of jQuery would be available to all widgets as > $jQD and the other jQuery version would still be available as $ or > jQuery. This kind of sounds nice, but perhaps some sort of djang

Re: admin javacripts

2010-02-19 Thread Rajeev J Sebastian
Hello all friends, I would like to apologize for my inappropriate comments and not offering constructive criticism. Sorry, although there are many reasons[1] why jquery sucks for coding a good and extensible UI for the admin, I realize that it will be quite impossible to convince any of you about

Re: admin javacripts

2010-02-19 Thread Russell Keith-Magee
On Sat, Feb 20, 2010 at 1:58 AM, Rob Hudson wrote: > On Fri, Feb 19, 2010 at 8:58 AM, Luke Plant wrote: >> IMO, using 'library agnostic' javascript in the admin will mean we >> just end up implementing our own library, which will end up being an >> ad hoc, informally-specified, bug-ridden, slow i

Re: admin javacripts

2010-02-19 Thread Preston Timmons
Hi Rob, On Feb 19, 11:58 am, Rob Hudson wrote: > On Fri, Feb 19, 2010 at 8:58 AM, Luke Plant wrote: > 1) Do we put jQuery in base.html and have Django's widgets and plugins > assume it will be there? > > * Benefits: Javascript admin customizations are simpler and can use > the jQuery already on

Re: admin javacripts

2010-02-19 Thread Rob Hudson
On Fri, Feb 19, 2010 at 8:58 AM, Luke Plant wrote: > IMO, using 'library agnostic' javascript in the admin will mean we > just end up implementing our own library, which will end up being an > ad hoc, informally-specified, bug-ridden, slow implementation of half > of jQuery/dojo/etc, and even less

Re: admin javacripts

2010-02-19 Thread Luke Plant
On Friday 19 February 2010 14:38:01 Rajeev J Sebastian wrote: > >>> While certain parts of the admin are (or will be) using jQuery > >>> (widgets, etc.) > >> > >> This really sucks. Kindly don't do this. > > > > It already does. At least the calendar widget is done with > > jQuery. > > Bad. Com

Re: admin javacripts

2010-02-19 Thread Rajeev J Sebastian
On Fri, Feb 19, 2010 at 10:14 PM, Luke Plant wrote: > On Friday 19 February 2010 15:44:00 Javier Guerra wrote: > >> just checked my install, and there's no trace of jQuery anywhere in >>  the admin > > You must be looking at an old checkout: > >  http://code.djangoproject.com/browser/django/trunk/

Re: admin javacripts

2010-02-19 Thread Luke Plant
On Friday 19 February 2010 15:44:00 Javier Guerra wrote: > just checked my install, and there's no trace of jQuery anywhere in > the admin You must be looking at an old checkout: http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/options.py#L273 Luke -- Clothes make th

Re: admin javacripts

2010-02-19 Thread Javier Guerra
On Fri, Feb 19, 2010 at 10:36 AM, Jannis Leidel wrote: > The calendar widget [1] is *not* done with jQuery. ups! my bad i must have misread and misremembered some old comments somewhere. just checked my install, and there's no trace of jQuery anywhere in the admin -- Javier -- You rece

Re: admin javacripts

2010-02-19 Thread Jannis Leidel
Am 19.02.2010 um 15:31 schrieb Javier Guerra: > On Fri, Feb 19, 2010 at 6:32 AM, Rajeev J Sebastian > wrote: >> On Thu, Feb 18, 2010 at 8:09 PM, Rob Hudson wrote: >>> While certain parts of the admin are (or will be) using jQuery >>> (widgets, etc.) >> >> This really sucks. Kindly don't do this

Re: admin javacripts

2010-02-19 Thread Rajeev J Sebastian
On Fri, Feb 19, 2010 at 8:01 PM, Javier Guerra wrote: > On Fri, Feb 19, 2010 at 6:32 AM, Rajeev J Sebastian > wrote: >> On Thu, Feb 18, 2010 at 8:09 PM, Rob Hudson wrote: >>> While certain parts of the admin are (or will be) using jQuery >>> (widgets, etc.) >> >> This really sucks. Kindly don't

Re: admin javacripts

2010-02-19 Thread Javier Guerra
On Fri, Feb 19, 2010 at 6:32 AM, Rajeev J Sebastian wrote: > On Thu, Feb 18, 2010 at 8:09 PM, Rob Hudson wrote: >> While certain parts of the admin are (or will be) using jQuery >> (widgets, etc.) > > This really sucks. Kindly don't do this. It already does. At least the calendar widget is done

Re: admin javacripts

2010-02-19 Thread Rajeev J Sebastian
On Thu, Feb 18, 2010 at 8:09 PM, Rob Hudson wrote: > While certain parts of the admin are (or will be) using jQuery > (widgets, etc.) This really sucks. Kindly don't do this. Regards Rajeev J Sebastian -- You received this message because you are subscribed to the Google Groups "Django develo

Re: admin javacripts

2010-02-18 Thread George Karpenkov
On Feb 19, 1:39 am, Rob Hudson wrote: > I've battled many of these same issues when working on the debug > toolbar... it needs to work the same in any environment it gets loaded > into and, as such, has slightly different requirements put on it.  It > is seeming the admin is heading the same direc

Re: admin javacripts

2010-02-18 Thread George Karpenkov
+ it will make changing the jquery version much easier, since the person can just overwrite the base.html template On Feb 19, 3:39 pm, George Karpenkov wrote: > This is quite similar to the bug I've described > inhttp://code.djangoproject.com/ticket/12879. > > There is one thing that definitely

Re: admin javacripts

2010-02-18 Thread George Karpenkov
This is quite similar to the bug I've described in http://code.djangoproject.com/ticket/12879 . There is one thing that definitely needs to be done - Media definition needs to store javascripts as an ordered set to prevent duplicate inclusions rather then a list. I think adding jquery.js to the b

Re: admin javacripts

2010-02-18 Thread Rob Hudson
I've battled many of these same issues when working on the debug toolbar... it needs to work the same in any environment it gets loaded into and, as such, has slightly different requirements put on it. It is seeming the admin is heading the same direction to some degree. While certain parts of the

admin javacripts

2010-02-18 Thread Ales Zoulek
Hello, there a ticket about jQuery in admin that breaks any site-included jQueries and there's no easy/clean way to prevent it. http://code.djangoproject.com/ticket/12882 Let's see a bigger picture there. To my knowledge, admin has two ways how to include custom JS. One template based second p