Reload post after update

This commit is contained in:
Pierre 2018-01-16 06:50:04 +01:00
parent b8a2e87991
commit 9edddaf2ca

View File

@ -149,6 +149,12 @@ ComunicWeb.components.posts.edit = {
//Display success //Display success
ComunicWeb.common.notificationSystem.showNotification("The post has been updated !", "success"); ComunicWeb.common.notificationSystem.showNotification("The post has been updated !", "success");
//Reload post
ComunicWeb.components.posts.actions.reload_post(infos.ID, root);
//Close the modal
closeModal();
}); });
} }
closeModalBtn.onclick = callback; closeModalBtn.onclick = callback;