* zin: modify the trigger of textarea of thinkchecklist wg.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
.think-check-list .item-control.is-checked {border: 1px solid var(--color-primary-500); color: var(--color-primary-500);}
|
||||
.think-check-list .item-control:hover {box-shadow: 0px 0.25rem 0.5rem 0px rgba(var(--color-primary-500-rgb), .3); border: 1px solid var(--color-primary-500);}
|
||||
.think-check-list .item-control textarea {background-color: #fff;}
|
||||
.think-check-list .checkbox-primary {--checkbox-size: 16px;}
|
||||
.think-check-list .checkbox-primary {--checkbox-size: 16px; width: 16px;}
|
||||
.think-check-list .checkbox-primary>input[type=checkbox]:checked+label:after {left: 1px; --tw-content: "\e5ca"; color: var(--color-primary-500); font-weight: 600;}
|
||||
.think-check-list .checkbox-primary.checked>label:before, .think-check-list .checkbox-primary>input[type=checkbox]:checked+label:before {background-color: unset; border-color: var(--color-primary-500); color: var(--color-primary-500);}
|
||||
.think-check-list .checkbox-primary.checked>label, .think-check-list .radio-primary>label {font-family: ZentaoIcon !important;}
|
||||
|
||||
@@ -23,6 +23,7 @@ window.toggleChecked = function()
|
||||
if($(this).hasClass('has-input'))
|
||||
{
|
||||
$(this).find('textarea').prop('disabled', !$(this).find('input').prop('checked'));
|
||||
if($(this).find('input').prop('checked')) $(this).find('textarea').trigger('focus');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user