Keyword

Close button on front-end editing is not working

  • N T
  • N T's Avatar Topic Author
  • Offline
  • Junior Member
More
1 week 2 days ago #170128 by N T
N T created the topic: Close button on front-end editing is not working
Hello,

I have Joomla 3.8.12 and K2 2.9.0.
I just updated K2 from 2.7.1 to 2.9.0, and I have an unusual style and behavior on front-end editing. Please see attached.

1. Save, Close, and K2 Toggle Sidebar on the top left do not appear to be a button. Hoe can I fix this?
2. Tabs for Content and Image are missing. It displays as a bullet list. How can I fix this?
3. If I click Close link without edit any text, it did not close. The front-end editing just stay there. How can I fix this?
4. If I edit text, click Save, and then click Close, it closed the front-end editing window and send me to the homepage. How can I stay at the page I just edited?

I did not see any error on JavaScript console, so I don't know what else I can tell you to help me figure it out.

Please advise.

Thank you,

N

Attachments:

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Extensions Developer
More
1 week 2 days ago #170132 by Mohamed Abdelaziz
Mohamed Abdelaziz replied the topic: Close button on front-end editing is not working
Hello,

Most probably it is a javascript error.
Make sure that the console is activated for the window of the edit from, it should tell you what is happening.

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

  • N T
  • N T's Avatar Topic Author
  • Offline
  • Junior Member
More
1 week 2 days ago #170133 by N T
N T replied the topic: Close button on front-end editing is not working
Mohamed,
Thank you for your response.
The console is activated for the window of the edit form. I compare the css files and js files that were being loaded on the modal of the edit form between k2 version 2.7.1 on my production site and 2.9.0 on my test site, I found they are different.

on K2 2.7.1, it loads
- k2.js?v=2.7.1&sitepath=/
- k2.noconflict.js?v=2.7.1
- nicEdit.js?v=2.7.1
- K2.css?v=2.7.1
- K2.frontend.css?v=2.7.1

on K2 2.9.0, it loads
- k2.backend.js?v=2.9.0&sitepath=/
- K2.frontend.js??v=2.9.0&sitepath=/
- nicEdit.js?v=2.9.0
- K2.css?v=2.9.0
- K2.backend.css?v=2.9.0

Are Js files and CSS files on version 2.9.0 being loaded correctly?

Thank you,

N

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 week 2 days ago #170139 by Fotis
Fotis replied the topic: Close button on front-end editing is not working
Delete your /templates/YOUR_TEMPLATE/html/com_k2/default/itemform.php - it has significantly changed after 2.7.1, that's why that old layout is broken now.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • N T
  • N T's Avatar Topic Author
  • Offline
  • Junior Member
More
1 week 1 day ago #170140 by N T
N T replied the topic: Close button on front-end editing is not working
Fortis,
I appreciate your quick response.
I removed itemform.php, and the layout is much better. Save and Close appear to be a button. Content and Image appear to be a tab.
I only have one issue left, the close button did not close when I clicked. It stays on the front-end editing window.
Please advise.
Thank you,
N

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 week 1 day ago #170141 by Fotis
Fotis replied the topic: Close button on front-end editing is not working
Did you check your browser's console for any JS issues? Plugins from other extensions (or even your template) may load additional scripts causing issues overall.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • N T
  • N T's Avatar Topic Author
  • Offline
  • Junior Member
More
1 week 1 day ago #170143 by N T
N T replied the topic: Close button on front-end editing is not working
I checked. I did not see any JS error on the browser's console.
Anything else I can check?
Thanks,
N

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
6 days 1 hour ago #170183 by Fotis
Fotis replied the topic: Close button on front-end editing is not working
Since it loads an iframe, you need to check for errors in the iframe. Simply do a right-click on some item edit link and open the page in another tab in your browser. Then open your browser's console and reload the page for potential errors.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • N T
  • N T's Avatar Topic Author
  • Offline
  • Junior Member
More
5 days 3 hours ago #170209 by N T
N T replied the topic: Close button on front-end editing is not working
Thanks for your tips.
Below is what I found.
N

Attachments:

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
5 days 2 hours ago #170216 by Fotis
Fotis replied the topic: Close button on front-end editing is not working
So Fancybox breaks and thus JS.

Provided an older version of Fancybox is not already loaded through your template or some plugin, make sure you have SIGPro v3.6.0 PR1 installed and K2 v2.9.1 (dev) from: github.com/getk2/k2/archive/master.zip


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


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