Revision 10fe2228
Von Jan Büren vor etwa 3 Jahren hinzugefügt
js/kivi.Order.js | ||
---|---|---|
134 | 134 |
}; |
135 | 135 |
|
136 | 136 |
ns.send_email = function() { |
137 |
// push button only once -> slow response from mail server |
|
138 |
ns.email_dialog_disable_send(); |
|
139 |
|
|
137 | 140 |
var data = $('#order_form').serializeArray(); |
138 | 141 |
data = data.concat($('[name^="email_form."]').serializeArray()); |
139 | 142 |
data = data.concat($('[name^="print_options."]').serializeArray()); |
... | ... | |
465 | 468 |
pp.o.multiple=1; |
466 | 469 |
pp.open_dialog(); |
467 | 470 |
}; |
471 |
ns.email_dialog_disable_send = function() { |
|
472 |
// disable mail send event to prevent |
|
473 |
// impatient users to send multiple times |
|
474 |
$('#send_email').prop('disabled', true); |
|
475 |
}; |
|
468 | 476 |
|
469 | 477 |
ns.add_multi_items = function(data) { |
470 | 478 |
var insert_before_item_id = ns.get_insert_before_item_id($('#multi_items_position').val()); |
Auch abrufbar als: Unified diff
E-Mail-Dialog: Knopf E-Mail senden ausgrauen um mehrfaches Senden zu verhindern