From 9edddaf2ca85f7d54e84253110e0ab2fcb1ea352 Mon Sep 17 00:00:00 2001 From: Pierre Date: Tue, 16 Jan 2018 06:50:04 +0100 Subject: [PATCH] Reload post after update --- assets/js/components/posts/edit.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assets/js/components/posts/edit.js b/assets/js/components/posts/edit.js index 159a31ed..20e6349c 100644 --- a/assets/js/components/posts/edit.js +++ b/assets/js/components/posts/edit.js @@ -149,6 +149,12 @@ ComunicWeb.components.posts.edit = { //Display 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;