From 2e7c5f995e81e86dbdf9251e0f11a755c0c84e48 Mon Sep 17 00:00:00 2001 From: Daniel Beck <1831569+daniel-beck@users.noreply.github.com> Date: Thu, 21 Jul 2022 22:52:37 +0200 Subject: [PATCH] [JENKINS-60866] Remove stupid attributes from `f:toggleSwitch` (#6871) [JENKINS-60866] Remove stupid attributes from f:toggleSwitch Co-authored-by: Daniel Beck --- core/src/main/resources/lib/form/toggleSwitch.jelly | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/core/src/main/resources/lib/form/toggleSwitch.jelly b/core/src/main/resources/lib/form/toggleSwitch.jelly index ba3abf9c0f9a..e3775770d269 100644 --- a/core/src/main/resources/lib/form/toggleSwitch.jelly +++ b/core/src/main/resources/lib/form/toggleSwitch.jelly @@ -42,19 +42,10 @@ THE SOFTWARE. If this attribute is unspecified or null, it defaults to unchecked, otherwise checked. - Move the label of the toggle switch to the opposite side - - If set to true, this will take precedence over the onclick attribute and prevent the state of the checkbox from - being changed. - - Note: if you want an actual read only checkbox then add: - <j:set var="readOnlyMode" value="true"/> inside your entry tag - See https://www.jenkins.io/doc/developer/views/read-only/#enabling-read-only-view-support - Used for databinding. TBD. @@ -80,7 +71,6 @@ THE SOFTWARE. name="${name}" value="${value}" id="${id}" - onclick="${readonly=='true' ? 'return false;' : onclick}" class="jenkins-toggle-switch__input ${attrs.class} ${checkUrl!=null?'validated':''}" checkUrl="${checkUrl}" checkDependsOn="${checkDependsOn}" json="${json}"