Hi,
I already use jQuery and have it called in the head section of each page.
Even if I disable the additional embedding of jQuery by QM in the module preferences, it breaks my jQuery by the following call:
<script type="text/javascript">
var $j = jQuery.noConflict();
$j(document).ready(function($){
$("a.colorbox").colorbox({width:"1000", height:"600", iframe:true});
});
function cb_remove(){
$j.fn.colorbox.close();
}
</script>
I’ve edited the qm.inc.php to make it look like this and to have my jQuery function properly:
<script type="text/javascript">
//var $j = jQuery.noConflict();
$(document).ready(function($){ //was $j...
$("a.colorbox").colorbox({width:"1000", height:"600", iframe:true});
});
function cb_remove(){
$.fn.colorbox.close(); //was $j...
}
</script>
I see that this was implemented to remove conflicts with other libraries. But it also removes the jQuery $ variable after that call...
I would suggest to have the conflict handling as an additional option in the module config.
Greetz
JUSI
EDIT: I’m using the QM bundled with Evo 1.0