From c35c00fa574ccbb83f5f1fd7a533339c0d0297e0 Mon Sep 17 00:00:00 2001 From: Abel Luck Date: Tue, 11 Feb 2020 10:12:22 +0100 Subject: [PATCH] Fixes #2929 - Consistently handle the 'disabled' attribute of input elements. --- .../app/views/generic/attachment.jst.eco | 2 + .../app/views/generic/checkbox.jst.eco | 2 +- .../app/views/generic/date.jst.eco | 2 +- .../app/views/generic/datetime.jst.eco | 2 +- .../app/views/generic/radio.jst.eco | 2 +- .../app/views/generic/richtext.jst.eco | 4 +- .../views/generic/searchable_select.jst.eco | 2 + .../app/views/generic/textarea.jst.eco | 2 +- app/assets/stylesheets/zammad.scss | 11 +++++ public/assets/tests/form.js | 46 +++++++++++++++++++ 10 files changed, 68 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/app/views/generic/attachment.jst.eco b/app/assets/javascripts/app/views/generic/attachment.jst.eco index 827312ade..2ab26dae8 100644 --- a/app/assets/javascripts/app/views/generic/attachment.jst.eco +++ b/app/assets/javascripts/app/views/generic/attachment.jst.eco @@ -1,5 +1,6 @@
+ <% if !@attribute.disabled: %>
<% uid = _.uniqueId('fileUpload_') %> @@ -9,6 +10,7 @@
+ <% end %>
diff --git a/app/assets/javascripts/app/views/generic/checkbox.jst.eco b/app/assets/javascripts/app/views/generic/checkbox.jst.eco index 766f06c46..7e96f92d6 100644 --- a/app/assets/javascripts/app/views/generic/checkbox.jst.eco +++ b/app/assets/javascripts/app/views/generic/checkbox.jst.eco @@ -1,7 +1,7 @@
<% for row in @attribute.options: %>