Keyword

New K2 CDN js file conflicting with close button for frontend editing.

  • Gary Hewitt
  • Gary Hewitt's Avatar Topic Author
  • Offline
  • New Member
More
5 years 2 months ago #171131 by Gary Hewitt
I have upgraded my client's site to Joomla 3.9.2 and K2 to 2.9. After doing so the frontend editing panel will not close. It did however work when on old K2 and pop up window. We have very limited components of which we have updated. Our issue is with the old way of doing things with the popup and everything works, now with this new way it doesn't. We noticed that the black border around the pop up edit screen in the new version is not there. Our template is a very simple Joomla template so there are no extra js files anywhere. We opened a Javascript error panel, but there are no errors that we can see.

We would like some help in fixing this.

new.douglasglengardens.ca/

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

More
5 years 2 months ago #171138 by JoomlaWorks
Can you try K2 v2.9.1 (dev) from github.com/getk2/k2/archive/master.zip please? If it solves your issue, all good, if not, it's probably a JS conflict somewhere.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Gary Hewitt
  • Gary Hewitt's Avatar Topic Author
  • Offline
  • New Member
More
5 years 2 months ago #171155 by Gary Hewitt
Sorry no, it did not resolve the issue.

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

  • Gary Hewitt
  • Gary Hewitt's Avatar Topic Author
  • Offline
  • New Member
More
5 years 2 months ago #171158 by Gary Hewitt
Ok, I figured out what you guys did. You changed the code on the edit link. I had html overrides for pages
you use to have this:

<a class="modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $this->item->editLink; ?>">
<?php echo JText::_('K2_EDIT_ITEM'); ?>
</a>

Now you have this:

<a data-k2-modal="edit" href="<?php echo $this->item->editLink; ?>">
<?php echo JText::_('K2_EDIT_ITEM'); ?>
</a>

After changing the edit link on my pages it works.

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

More
5 years 2 months ago #171167 by JoomlaWorks
Great.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum