Trim TG types after split
This commit is contained in:
parent
22e605168b
commit
5cb4dbc280
|
@ -595,7 +595,7 @@ jQuery(function () {
|
||||||
|
|
||||||
function showTypeSpecificControls(type) {
|
function showTypeSpecificControls(type) {
|
||||||
$('[data-tg-type]').each(function () {
|
$('[data-tg-type]').each(function () {
|
||||||
const tgTypes = $(this).attr('data-tg-type').split(',');
|
const tgTypes = $(this).attr('data-tg-type').split(',').map(x => x.trim());
|
||||||
for (const tgType of tgTypes) {
|
for (const tgType of tgTypes) {
|
||||||
if (tgType === type || tgType == 'all') {
|
if (tgType === type || tgType == 'all') {
|
||||||
$(this).show();
|
$(this).show();
|
||||||
|
|
Loading…
Reference in New Issue