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}"