diff --git a/api/js/etemplate/et2_widget_file.js b/api/js/etemplate/et2_widget_file.js index 4c9da56aaa..5eecde31a3 100644 --- a/api/js/etemplate/et2_widget_file.js +++ b/api/js/etemplate/et2_widget_file.js @@ -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) { diff --git a/api/js/etemplate/et2_widget_file.ts b/api/js/etemplate/et2_widget_file.ts index 18dff6cf6a..6e86e98eb9 100644 --- a/api/js/etemplate/et2_widget_file.ts +++ b/api/js/etemplate/et2_widget_file.ts @@ -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;