Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi!
I have added a new option in the epi.cms.publishmenu and that works just fine. When the user clicks the menu option I show a confirm dialog and if the user clicks the Publish button in the dialog I publish the page and try to update the UI.
I found this earlier poat from which I tried to reuse code:
https://world.episerver.com/forum/developer-forum/-Episerver-75-CMS/Thread-Container/2018/3/trigger-refresh-of-ui/
The thing is that it works the second time I click the link. The first time the "Changes to be publish" is still there and if I press my option one more time it disappears and the page looks like it should with nothing to publish.
If I reresh the page after the first time it also looks like it should, no changes to publish.
this is my code:
What am I missing to get this to work the first time?
Thanks!
/Kristoffer