aboutsummaryrefslogtreecommitdiff
path: root/scripts/src/forum-categories.js
blob: b389d43d0f9e89327b3e92b65c5bc4d08bbf3f53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
document.addEventListener("DOMContentLoaded", function () {
    if (typeof(document.getElementById('body-forum')) != 'undefined' && document.getElementById('body-forum') != null) {
        if (typeof(document.getElementById('choices-container')) != 'undefined' && document.getElementById('choices-container') != null) {
            console.log(document.getElementById('category-list'));
            console.log('firing');
            initChoicesMenu({
                data: window.nbdata, 
                wrapper_classes: ['choices-wrapper', 'choices-wrapper-notebooks'],
                replace_el: document.getElementById('category-list'),
                choices_name: "choices-category",
                choices_id: "choices-category"
            });
        }
    }
});