0001-general-disable-form-submit-button-when-an-upload-is.patch
wcs/qommon/static/js/qommon.fileupload.js | ||
---|---|---|
12 | 12 |
$(base_widget).find('.fileprogress .bar').css('width', '0%'); |
13 | 13 |
$(base_widget).find('.fileprogress').show(); |
14 | 14 |
$(base_widget).find('.fileinfo').hide(); |
15 |
$(base_widget).parents('form').find('input[name=submit]').prop('disabled', true); |
|
15 | 16 |
var jqXHR = data.submit(); |
16 | 17 |
}, |
17 | 18 |
done: function(e, data) { |
... | ... | |
19 | 20 |
$(base_widget).find('.filename').text(data.result[0].name); |
20 | 21 |
$(base_widget).find('.fileinfo').show(); |
21 | 22 |
$(base_widget).find('input[type=hidden]').val(data.result[0].token); |
23 |
$(base_widget).parents('form').find('input[name=submit]').prop('disabled', false); |
|
22 | 24 |
$(this).hide(); |
23 | 25 |
}, |
24 | 26 |
progress: function (e, data) { |
25 |
- |