diff options
Diffstat (limited to 'scripts/src/forum-categories.js')
-rw-r--r-- | scripts/src/forum-categories.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/src/forum-categories.js b/scripts/src/forum-categories.js new file mode 100644 index 0000000..b389d43 --- /dev/null +++ b/scripts/src/forum-categories.js @@ -0,0 +1,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" + }); + } + } +}); |