Disable the new fields if editing JO form. #324
This commit is contained in:
parent
716f263e6b
commit
e202fb650c
1 changed files with 8 additions and 0 deletions
|
|
@ -1066,6 +1066,14 @@ $(function() {
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
// disable the enabled customer fields
|
||||||
|
{% if mode != 'create' %}
|
||||||
|
$("#customer-email").prop("disabled", true);
|
||||||
|
$("#flag-dpa-consent").prop("disabled", true);
|
||||||
|
$("#flag-promo-sms").prop("disabled", true);
|
||||||
|
$("#flag-promo-email").prop("disabled", true);
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
$("#row-form").submit(function(e) {
|
$("#row-form").submit(function(e) {
|
||||||
if (form_in_process) {
|
if (form_in_process) {
|
||||||
alert("Cannot submit form twice. First submission still in progress.");
|
alert("Cannot submit form twice. First submission still in progress.");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue