Custom JS problem in django's admin

37 views
Skip to first unread message

Alireza Savand

unread,
May 20, 2012, 6:08:21 AM5/20/12
to django...@googlegroups.com
Hi
I have the following dummy java script file => https://gist.github.com/2757531 , that i used django.jQuery instead of $ selector, but it's not working.
Weird thing is when i manually write that js script at the chrome's console  it's works!

Thanks 

Alireza Savand

unread,
May 20, 2012, 6:21:28 AM5/20/12
to django...@googlegroups.com
Hi Alireza
I know it's little bit late to answer, but i hope this works for you
I gist the fixed version of yours here => https://gist.github.com/2757572
All you have to do is just put your custom js in one 

$(function(){
    // here
)};

scope.

;)
Reply all
Reply to author
Forward
0 new messages