From abe46e186256e96a0cb1e05c964c4bf2f462b1d6 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sat, 9 Oct 2021 15:01:38 +0200 Subject: [PATCH] Show checkbox from boolean custom columns on details page with caliblur theme --- cps/static/js/caliBlur.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cps/static/js/caliBlur.js b/cps/static/js/caliBlur.js index ce230730..3203c255 100644 --- a/cps/static/js/caliBlur.js +++ b/cps/static/js/caliBlur.js @@ -150,11 +150,16 @@ if ($("body.book").length > 0) { var splitText = $(this).text().split(':'); var label = splitText.shift().trim(); var value = splitText.join(':').trim(); + var class_value = "" // Preserve Links if ($(this).find('a').length) { value = $(this).find('a').first().removeClass(); } - $(this).html('' + label + '').find('span').last().append(value); + // Preserve glyphicons + if ($(this).find('span').length) { + class_value = $(this).find('span').first().attr('class'); + } + $(this).html('' + label + '').find('span').last().append(value); }); $(".book-meta h2:first").clone()