From 70232ade848aa637ba8a077726de122db70b4549 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 7 Jan 2018 19:22:20 +0100 Subject: [PATCH] Automatically refresh page once a post is created. --- assets/js/components/posts/form.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/assets/js/components/posts/form.js b/assets/js/components/posts/form.js index 9e419735..dbf28772 100644 --- a/assets/js/components/posts/form.js +++ b/assets/js/components/posts/form.js @@ -472,9 +472,12 @@ ComunicWeb.components.posts.form = { return; } - //Else - //DEBUG - Temporary behaviour - sendButton.disabled = false; + //Else + //Display a success notification + ComunicWeb.common.notificationSystem.showNotification("The post has been successfully created !", "success"); + + //Refresh current page + ComunicWeb.common.page.refresh_current_page(); }); } },