Skip to content

Recent Cards plugin customization

Solved Customisation
  • @pobojmoks that’s easily done by modifying the code provided here so that it targets background rather than border

    In essence, the below should work

    $(document).ready(function() {
    $(window).on('action:ajaxify.end', function(data) {
    $('.recent-card-container').each(function(i) {
    var dataId = $(this).attr("data-cid");
    var color = $('[role="presentation"]', this).css("background-color");
    console.log("data-cid " + dataId + " is " + color);
    $('[data-cid="' + dataId + '"] .recent-card').attr("style", "background-color: " + color);
    });
    });
    });
  • undefined phenomlab referenced this topic on 8 Oct 2022, 22:26


21/21

20 Jul 2022, 09:59


Did this solution help you?
Did you find the suggested solution useful? Why not buy me a coffee? It's a nice gesture, and a great way to show your appreciation 💗

Related Topics