mootools loaded along with the Confirmation Page plugin

piotr_cz 23 Oct, 2009
Hi,
on the site I'm developing I switched to MooTools 1.2.4 along with ChronoForms 3.1RC5.5

I'm using updated version of Confirmation Page plugin Re: HELP! Confirmation page...again...with RC5.3!, which loads default MooTools library (/media/system/js/mootools.js) using the code in chronocontact.html.php @L29, even when the option to use MooTools is disabled.

Seems that the plugin switches $MyForm->formparams('captcha_dataload') somehow to true.

I couldn't find any references in the plugin file though so I commented out that line. By the way, updated version of the plugin is not available in the 3.1RC5.5


thanks for great component!
GreyHead 25 Oct, 2009
Hi piotr_cz,

The option to 'use MooTools' doesn't do much any more - it used to control whether Prototype or MooTools were used for the validation library.

In the current version many parts of ChronoForms depend on MooTools being loaded to work correctly. They may or may not work with MooTools 1.2.

Bob

PS I don't have access to add updated Plugins to the licensed versions of ChronoForms so the updates there and to the downloadable versions tend to wait until the next full release. Perhaps I should find time to put them into the downloads area though.
piotr_cz 29 Oct, 2009
Thank you for answer Bob.

In the current version many parts of ChronoForms depend on MooTools being loaded to work correctly. They may or may not work with MooTools 1.2.



Maybe I've just been lucky, but I was able to prevent standard mootools.js from loading by setting 'Load Chronoforms CSS/JS Files?' to no and commenting out code '||($MyForm->formparams('captcha_dataload'))' in file '/components/com_chronocontact/chronocontact.html.php' at line 28.

PS I don't have access to add updated Plugins to the licensed versions of ChronoForms so the updates there and to the downloadable versions tend to wait until the next full release. Perhaps I should find time to put them into the downloads area though.



In my opinion it would be helpful to upgrade even minor releases of Release Candidates, so users don't have to hunt for bugfixes in the forum (version 3.1 is under development for some time).

again, thanks for great work!
This topic is locked and no more replies can be posted.