Keyword

Closing the frontend dialog is not reloading page

  • Frank
  • Frank's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 2 months ago #163808 by Frank
Hello!

After upgrading from K2 2.7.2 to 2.8 I'm facing the following problem:

I do have a Joomla menu which is showing k2 items of a given category. On that page I do have custom button with a link index.php?option=com_k2&view=item&layout=itemform&task=add&Itemid=62 which opens the frontend add item dialog (itemform.php).

I can fill out the form and create a new item.

With K2 2.7.2: if I press the "Close" button my parent page was reloaded so the list which is showing items of a given category was refreshed and showed the newly created item at the very beginning of the list. Perfect.

But with K2 2.8 the joomla menu does not get reloaded automatically so the list does not show the newly create k2 item at the top. Only after to a manual page reload I do see the created item on the list.

Any ideas how to get the auto reload mechanism back?

Cheers
Frank

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 2 months ago #163818 by Krikor Boghossian
Replied by Krikor Boghossian on topic Closing the frontend dialog is not reloading page
Hello Frank,

You can add this as a enhancement request in our repo:
github.com/getk2

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

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

  • Frank
  • Frank's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 2 months ago #163848 by Frank
Hello!

You had this feature in K2 2.7.2 - why did you remove it?

Any tips where I can look to manually patch it in again? Any hints are welcome because without an automatic reload the user experience is quiet odd.

Thanks in advance
Frank

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 2 months ago #163865 by Krikor Boghossian
Replied by Krikor Boghossian on topic Closing the frontend dialog is not reloading page
Upon further inspection, the code is still there ->
github.com/getk2/k2/blob/master/media/k2/assets/js/k2.backend.js#L205-L218

Are you using the edit button or a menu item?

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