From e438ed281e7a956f898e66babebf11c29a2347b0 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 4 Sep 2014 15:04:22 +0000 Subject: [PATCH] Fix styling of freezed buttons while uploading files via file widget --- etemplate/js/et2_widget_file.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_widget_file.js b/etemplate/js/et2_widget_file.js index 73651cbf4a..f1c8f4bf32 100644 --- a/etemplate/js/et2_widget_file.js +++ b/etemplate/js/et2_widget_file.js @@ -411,7 +411,12 @@ var et2_file = et2_inputWidget.extend( this.hideMessage(); // Disable buttons - this.disabled_buttons = $j("input[type='submit'], button").not("[disabled]").attr("disabled", true); + this.disabled_buttons = $j("input[type='submit'], button") + .not("[disabled]") + .attr("disabled", true) + .addClass('et2_button_ro') + .removeClass('et2_clickable') + .css('cursor', 'default'); event.data = this; @@ -424,7 +429,7 @@ var et2_file = et2_inputWidget.extend( * Re-enables submit buttons when done */ onFinish: function() { - this.disabled_buttons.attr("disabled", false); + this.disabled_buttons.attr("disabled", false).css('cursor','pointer'); var file_count = this.resumable.files.length;