Skip to content
Snippets Groups Projects
Commit 72543205 authored by Marc Egger's avatar Marc Egger
Browse files

refs #10554 : fix extrabuttonlock also for select

parent 142f3922
No related branches found
No related tags found
2 merge requests!302Develop,!296Marc: Form/Report As File, Path class, Config class, Typo3 v9 compatability
Pipeline #3987 failed
......@@ -432,6 +432,15 @@ EOF;
// LOCK
if (!$skip && HelperFormElement::booleParameter($formElement[FE_INPUT_EXTRA_BUTTON_LOCK] ?? '-')) {
switch ($formElement[FE_TYPE]) {
case FE_TYPE_SELECT:
$extraButton .= <<<EOF
<button class="btn btn-info"
onclick="$('#$id').toggleClass('qfq-disabled')">
<span class="glyphicon glyphicon-lock" aria-hidden="true"></span>
</button>
<script>$('#$id').addClass('qfq-disabled')</script>
EOF;
break;
case FE_TYPE_CHECKBOX:
case FE_TYPE_RADIO:
$extraButton .= <<<EOF
......
......@@ -167,6 +167,7 @@ i.@{spinner_class} {
.qfq-disabled {
cursor: not-allowed !important;
pointer-events: none !important;
background: #eee !important;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment