TranStarExec

Forum Replies Created

  • In reply to: Menu "Jumping"

    September 23, 2019 at 9:22 am #5131
    J
    TranStarExec
    Participant

    adding the following to the bottom of  scp/js/scp.js makes counts load before hover (remove ending BR’s, can’t seem to get them to not show)

    $(document).ready(function() {
        $.ajax({
            url: 'ajax.php/queue/counts',
            dataType: 'json',
            success: function(json) {
                $('li span.queue-count').each(function(i, e) {
                    var $e = $(e);
                    $e.text(json['q' + $e.data('queueId')]);
                $(e).parents().find('#queue-count-bucket').show();
                });
            }
        });
    });