Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

a.modal being loaded twice

  • cvoogt
  • cvoogt's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 2 months ago #42902 by cvoogt
a.modal being loaded twice was created by cvoogt
Using FPSS 3.0.1. I am using Mootools throughout the site using a.modal to show modal images in a lightbox window. I have embedded FPSS into two articles using loadposition, but the strange thing is that these modules seem to be adding the JHTML::behavior('framework') to the page even when those modules aren't loaded on the current page. I tested and tested, and each time I would turn the modules off, the second framework call would disappear.
This is what it renders in the head:
<script type="text/javascript">

		window.addEvent('domready', function() {

			SqueezeBox.initialize({});
			SqueezeBox.assign($$('a.modal'), {
				parse: 'rel'
			});
		});
function keepAlive() {	var myAjax = new Request({method: "get", url: "index.php"}).send();} window.addEvent("domready", function(){ keepAlive.periodical(3600000); });
  </script>


I fixed this for now by commenting this out in /components/com_fpss/helpers/slideshow.php:
if(version_compare(JVERSION,'1.6.0','ge')) {
			JHtml::_('behavior.framework');
		} else {
			JHTML::_('behavior.mootools');
		}

Strange problem since there's no system plugin used by FPSS.
I did also test with caching turned off.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum