Fix submit buttons get disabled after file upload

This commit is contained in:
Hadi Nategh 2020-04-21 18:29:46 +02:00
parent 1436aeeb27
commit 6e73a2bb66
2 changed files with 2 additions and 2 deletions

View File

@ -352,7 +352,7 @@ var et2_file = /** @class */ (function (_super) {
* Re-enables submit buttons when done
*/
et2_file.prototype.onFinish = function () {
this.disabled_buttons.attr("disabled", 0).css('cursor', 'pointer').removeClass('et2_button_ro');
this.disabled_buttons.removeAttr("disabled").css('cursor', 'pointer').removeClass('et2_button_ro');
var file_count = this.resumable.files.length;
// Remove files from list
while (this.resumable.files.length > 0) {

View File

@ -497,7 +497,7 @@ export class et2_file extends et2_inputWidget
* Re-enables submit buttons when done
*/
onFinish() {
this.disabled_buttons.attr("disabled", 0).css('cursor','pointer').removeClass('et2_button_ro');
this.disabled_buttons.removeAttr("disabled").css('cursor','pointer').removeClass('et2_button_ro');
var file_count = this.resumable.files.length;