mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-24 18:08:50 +00:00
Automatically refresh page once a post is created.
This commit is contained in:
parent
5866a8bbba
commit
70232ade84
@ -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();
|
||||
});
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user