﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
26885	django admin jquery initial changed in 1.9+	WANG WENPEI	nobody	"Hi,all:

Does somebody can explain why we change `jquery.init.js` file in admin module ?

in current code, this style cause some scope issue.
we can't get `jQuery`,`$` in global. 

{{{
/*global django:true, jQuery:false*/
/* Puts the included jQuery into our own namespace using noConflict and passing
 * it 'true'. This ensures that the included jQuery doesn't pollute the global
 * namespace (i.e. this preserves pre-existing values for both window.$ and
 * window.jQuery).
 */
var django = django || {};
django.jQuery = jQuery.noConflict(true);

}}}

in 1.8 release package . the code is
{{{
var django = django || {};
django.jQuery = jQuery;

var yl = yl || {};
yl.jQuery = django.jQuery;

// this file also prevents django.jQuery.noConflict
// there's got to be a better way ...

}}}

I don't think this is a better improve .

we have so many plugins depend on global  jQuery or $ ! we can't use them anymore,we have to add custom jQuery lib or change code to local scope.

I submit a PR , if you agree with me, please confirm it.
"	Bug	closed	contrib.admin	1.9	Normal	invalid			Unreviewed	0	0	0	0	0	0
