From 11a3b7609451d48f6656015156c72802c8c0b3b3 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 20 Apr 2016 11:38:07 +0000 Subject: [PATCH] Fix upload a file via et2_file widget, keep all buttons in readonly mode even if the uploading process is finished --- api/js/etemplate/et2_widget_file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_widget_file.js b/api/js/etemplate/et2_widget_file.js index 6c396d4bc4..4a6f14936b 100644 --- a/api/js/etemplate/et2_widget_file.js +++ b/api/js/etemplate/et2_widget_file.js @@ -448,7 +448,7 @@ var et2_file = (function(){ "use strict"; return et2_inputWidget.extend( * Re-enables submit buttons when done */ onFinish: function() { - this.disabled_buttons.attr("disabled", false).css('cursor','pointer'); + this.disabled_buttons.attr("disabled", false).css('cursor','pointer').removeClass('et2_button_ro'); var file_count = this.resumable.files.length;