Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-08-25 22:07:44 +0300
committerMike Greiling <mike@pixelcog.com>2017-08-26 11:31:14 +0300
commit8cf504a71c326033a5a0885fa950a7d2c37ca93c (patch)
treea9fbf4f1844f90bf8660041dad5ec43e48a61e2a /app/views/shared/_visibility_radios.html.haml
parent04e3e609daa54a62b0caf5a5ed5ade1cdb8c5eae (diff)
don't check disabled radio inputs
Diffstat (limited to 'app/views/shared/_visibility_radios.html.haml')
-rw-r--r--app/views/shared/_visibility_radios.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/_visibility_radios.html.haml b/app/views/shared/_visibility_radios.html.haml
index 8a80ccd4030..13eeaeefa9f 100644
--- a/app/views/shared/_visibility_radios.html.haml
+++ b/app/views/shared/_visibility_radios.html.haml
@@ -4,7 +4,7 @@
- disabled = disallowed || restricted
.radio{ class: [('disabled' if disabled), ('restricted' if restricted)] }
= form.label "#{model_method}_#{level}" do
- = form.radio_button model_method, level, checked: (selected_level == level), disabled: disabled
+ = form.radio_button model_method, level, checked: (selected_level == level && !disabled), disabled: disabled
= visibility_level_icon(level)
.option-title
= visibility_level_label(level)