Page 1 of 1

mootools js

Posted: 21 May 2014, 11:19
by menhir777
Hallo i m currently developping a new web site in which i m using pocha gallery,
i m using joomla 3.2.4 (i m waiting for the upgrade of the server for the 3.3.0) and i m using a simple templates created by me in order to achieve the client's ideas, and in my template i stripped out any calls to mootools, in order to have only jquery.
everything works fine but in the page in which pocha gallery is displayed mootools is back again!!
I read previuos post in wich you wrote that mootools js is not a dependency of pocha gallery, and as far as i was able to dig in your code this seems true to me as well, but still mootools is there..!!
In a local version of the site i have been upgrading to joomla 3.3.0 and pocha gallery 4.1.1 but same problem (it is not a prob at all but i would like to avoid it), so i believe that there are calls in the code that cause this behavoir
i was looking straight away for this code "JHTML::_('behavior.framework');", but no result, so it is probably some calls to inherited functions (or class)..
Any help is appreciated..
thanks

Re: mootools js

Posted: 21 May 2014, 22:44
by menhir777
Hallo i found the code that calls mootools..
is in the file

[root]\components\com_phocagallery\views\category\view.html.php

in line 319
// =======================================================
// DIFFERENT METHODS OF DISPLAYING THE DETAIL VIEW
// =======================================================
// MODAL - will be displayed in case e.g. highslide or shadowbox too, because in there are more links
JHtml::_('behavior.modal', 'a.pg-modal-button');
if i comment this line no more mootools, and everything seems working fine
by the way i m using as modal highslide.js

any comment??? and any way to change this behavoir without commenting this 'core' file??
thanks

Re: mootools js

Posted: 23 May 2014, 00:11
by Jan
Hi, I am planning to add the loading to parameters for some of the next release - as some of the javascript methods need to have loaded the mootools :-(

Jan