16
Install & Configure jDiction / Re: Installation not working
« on: August 27, 2013, 01:25:50 am »
I figured it out. You have a conflict between JQuery and Mootools. I have jQuery loaded twice on my page, once before moot0ols and once after, I'm not really sure what is loading the first one but all I did was wrap your code that is using Mootools with the following:
// For Mootols scripts
(function($){
// set a local $ variable only available in this block as an alias
// to Mootools document.id
... here is your Mootools specific code ...
})(document.id);
This allows your Mootools to work without conflict as you localized scope of the $ variable to only mean an id selector. Only problem is I don't know where throughout your code you use Mootools where I need to fix that. It would be nice if you can release a patch that wraps all your Mootools code this way. Alternatively, I can try to find out what extension I am using that is loading jQuery first but that might take some time but also leaves your code vulnerable to future extensions that might reload jQuery first.
I took away super admin access as you don't need it anymore. But please let me know if you can release a patch or let me know where in your code you use Mootools so I can patch it myself.
Thanks
Joe
// For Mootols scripts
(function($){
// set a local $ variable only available in this block as an alias
// to Mootools document.id
... here is your Mootools specific code ...
})(document.id);
This allows your Mootools to work without conflict as you localized scope of the $ variable to only mean an id selector. Only problem is I don't know where throughout your code you use Mootools where I need to fix that. It would be nice if you can release a patch that wraps all your Mootools code this way. Alternatively, I can try to find out what extension I am using that is loading jQuery first but that might take some time but also leaves your code vulnerable to future extensions that might reload jQuery first.
I took away super admin access as you don't need it anymore. But please let me know if you can release a patch or let me know where in your code you use Mootools so I can patch it myself.
Thanks
Joe