- Posts: 10
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- New K2 CDN js file conflicting with close button for frontend editing.
New K2 CDN js file conflicting with close button for frontend editing.
- Gary Hewitt
- Topic Author
- Offline
- New Member
Less
More
5 years 9 months ago #171131
by Gary Hewitt
New K2 CDN js file conflicting with close button for frontend editing. was created 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/
We would like some help in fixing this.
new.douglasglengardens.ca/
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 9 months ago #171138
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic New K2 CDN js file conflicting with close button for frontend editing.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
5 years 9 months ago #171155
by Gary Hewitt
Replied by Gary Hewitt on topic New K2 CDN js file conflicting with close button for frontend editing.
Sorry no, it did not resolve the issue.
Please Log in or Create an account to join the conversation.
- Gary Hewitt
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
5 years 9 months ago #171158
by Gary Hewitt
Replied by Gary Hewitt on topic New K2 CDN js file conflicting with close button for frontend editing.
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.
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.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 9 months ago #171167
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic New K2 CDN js file conflicting with close button for frontend editing.
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.
- Forum
- K2 Community Forum
- English K2 Community
- New K2 CDN js file conflicting with close button for frontend editing.