mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 12:25:16 +00:00
Unlock send button of create post form in case of failure.
This commit is contained in:
@ -454,6 +454,7 @@ ComunicWeb.components.posts.form = {
|
|||||||
//Check for errors
|
//Check for errors
|
||||||
if(result.error){
|
if(result.error){
|
||||||
ComunicWeb.common.notificationSystem.showNotification("An error occured while trying to send a new post !", "danger");
|
ComunicWeb.common.notificationSystem.showNotification("An error occured while trying to send a new post !", "danger");
|
||||||
|
sendButton.disabled = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user