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>
--- /dev/null
+define [
+ 'jquery'
+], (jq) ->
+
+ return jq.noConflict( true );
# probably because it needs to be done asynchronously using setTimeout
#
define [
- 'jquery'
+ 'jquery-noconflict'
'lodash'
'json'
'od_api'
define [
- 'jquery'
+ 'jquery-noconflict'
'lodash'
'json'
'cookies'
# None of the extensions directly use the API, but they depend on od_action which does.
define [
- 'jquery'
+ 'jquery-noconflict'
'lodash'
'od_config'
'jquery-ui'
# None of the extensions directly use the API, but they depend on od_action which does.
define [
- 'jquery'
+ 'jquery-noconflict'
'lodash'
'od_api'
'od_config'
# od.$.on 'od.metadata', (ev, reply) -> # do something with reply
require [
- 'jquery'
+ 'jquery-noconflict'
'lodash'
'cookies'
'od_api'