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
Loading
Pipeline #3987 failed
...@@ -432,6 +432,15 @@ EOF; ...@@ -432,6 +432,15 @@ EOF;
// LOCK // LOCK
if (!$skip && HelperFormElement::booleParameter($formElement[FE_INPUT_EXTRA_BUTTON_LOCK] ?? '-')) { if (!$skip && HelperFormElement::booleParameter($formElement[FE_INPUT_EXTRA_BUTTON_LOCK] ?? '-')) {
switch ($formElement[FE_TYPE]) { 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_CHECKBOX:
case FE_TYPE_RADIO: case FE_TYPE_RADIO:
$extraButton .= <<<EOF $extraButton .= <<<EOF
......
...@@ -167,6 +167,7 @@ i.@{spinner_class} { ...@@ -167,6 +167,7 @@ i.@{spinner_class} {
.qfq-disabled { .qfq-disabled {
cursor: not-allowed !important; cursor: not-allowed !important;
pointer-events: none !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