Skip to content
Snippets Groups Projects
Verified Commit 77758d30 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX M2M loading button

parent 4da92a55
No related branches found
No related tags found
No related merge requests found
...@@ -199,6 +199,8 @@ function validEmailForm(path, form_id) { ...@@ -199,6 +199,8 @@ function validEmailForm(path, form_id) {
return; return;
} }
$j("input#valid.button").prop("disabled", true).css("opacity", "0.5");
tinyMCE.triggerSave(); tinyMCE.triggerSave();
new Ajax.Request(path, new Ajax.Request(path,
{ {
...@@ -212,6 +214,7 @@ function validEmailForm(path, form_id) { ...@@ -212,6 +214,7 @@ function validEmailForm(path, form_id) {
eval(response.exec_js); eval(response.exec_js);
window.parent.destroyModal('form_email'); window.parent.destroyModal('form_email');
} else { } else {
$j("input#valid.button").prop("disabled", false).css("opacity", "1");
alert(response.error); alert(response.error);
eval(response.exec_js); eval(response.exec_js);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment