mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-25 02:18:51 +00:00
Unlock send button of create post form in case of failure.
This commit is contained in:
parent
f7ba871344
commit
9275f3b910
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user