K2 Modal Window

  • Milan Sadil
  • Milan Sadil's Avatar Topic Author
  • Offline
  • New Member
2 months 5 days ago #171704 by Milan Sadil
Milan Sadil created the topic: K2 Modal Window
item.php override contains the following code:

<script type="text/javascript">
window.addEvent('domready', function(){
SqueezeBox.assign($$('a.k2Modal'), {
parse: 'rel'

When a page containing the code is opened in a browser the following error is generated:

Uncaught TypeError: window.addEvent is not a function

Perhaps it is a matter of using an obsolete MooTools function (I just upgraded to K2 2.9.0 and Joomla 3.9.5), but I have no idea what to use instead of this. Can you direct me the right way?

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
2 months 2 days ago #171751 by Fotis
Fotis replied the topic: K2 Modal Window
Just remove that part and make sure you add data-k2-modal="image" to the <a> element wrapping your main K2 item image (so you still have a working lightbox/modal to the XL image).

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory:

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

Moderators: william white

Powered by Kunena Forum