What steps will reproduce the problem?
1. Go to /admin/assets
2. Click on an image
3. Console shows JS error "$ is not a function"
What is the expected output? What do you see instead?
It shouldn't fail :)
What version of the product are you using? On what operating system?
Revision 540
Please provide any additional information below.
Problem is caused by prototype.js being included after jquery.js, so when
jQuery.noConflict() is called, window._$ doesn't exist so that prototype's $()
function can't be re-instated. The attached patch file includes prototype.js
before jquery and fixes the problem.
I noticed that there is a call to
Requirements::block(THIRDPARTY_DIR.'/prototype.js'), but prototype isn't at
this location (it's at
Requirements::block(THIRDPARTY_DIR.'/prototype/prototype.js')). Furthermore,
prototype is required by tabstrip.js, so don't know why this would be removed
anyway.
I have fixed the problem with the attached
Original issue reported on code.google.com by simon.w...@gmail.com on 1 Feb 2011 at 10:30
Original issue reported on code.google.com by
simon.w...@gmail.com
on 1 Feb 2011 at 10:30Attachments: