3cc60a06 |
1 | CRM.$(function($) { |
50688277 |
2 | //do not copy & paste this - find a way to generalise it |
2f171b0c |
3 | 'use strict'; |
c6edd786 |
4 | // NOTE: Might be safer to say $('[name=_qf_Email_upload]') |
5 | $('.form-submit').not('.cancel').on("click", function() { |
6 | $('.form-submit').not('.cancel').attr({value: ts('Processing')}); |
7 | // CRM-13449 : setting a 0 ms timeout is needed |
8 | // for some browsers like chrome. Used for purpose of |
9 | // submit the form and stop accidental multiple clicks |
10 | setTimeout(function(){ |
6f9cd76f |
11 | $('.form-submit').not('.cancel').prop({disabled: true}); |
c6edd786 |
12 | }, 0); |
13 | }); |
a1c34b62 |
14 | }); |