Use jQuery.noConflict to avoid conflict with other libraries
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 7 Jan 2015 21:12:06 +0000 (13:12 -0800)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 7 Jan 2015 21:12:06 +0000 (13:12 -0800)
commitb63fc3d5ab54b0e1d491731e06c34535a3861778
tree9c8cfef8d684e1c06485cdfa83143178043d1be2
parentf1c5f115dbbb51dff82491a9b5b02facc3b388f6
Use jQuery.noConflict to avoid conflict with other libraries

jQuery's use of '$' as an alias was conflicting with Dojo's use of '$'
as a function name on the TPAC advanced search page.  We can resolve
this by making OD API depend on a wrapper function that invokes
jquery.noConflict().  There's an "official" way to do this using the
require.js map config, but the approach we're using here is simpler (and
actually works!).

Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
src/jquery-noconflict.coffee [new file with mode: 0644]
src/od_action.coffee
src/od_api.coffee
src/od_pages_myopac.coffee
src/od_pages_opac.coffee
src/overdrive.coffee