1/*
2 * DokuWiki Bootstrap3 Template: Plugins Hacks!
3 *
4 * Home     http://dokuwiki.org/template:bootstrap3
5 * Author   Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
6 * License  GPL 2 (http://www.gnu.org/licenses/gpl.html)
7 */
8
9// Discussion plugin
10
11var $discussion = jQuery('.comment_wrapper');
12
13if ($discussion.length) {
14
15    $discussion.find('h2').addClass('page-header');
16    $discussion.find('.comment_buttons').addClass('text-right');
17    $discussion.find('#discussion__section').prepend('<span class="iconify mr-2" data-icon="mdi:comment-text-multiple"/>');
18
19    $discussion.find('.hentry').addClass('panel panel-default');
20    $discussion.find('.hentry .comment_head').addClass('panel-heading');
21    $discussion.find('.hentry .comment_body').addClass('panel-body');
22    $discussion.find('.toolbar').addClass('btn-group');
23    $discussion.find('.comment_buttons [type=submit]').addClass('btn-xs');
24    $discussion.find('.comment_buttons .discussion__delete .btn').addClass('btn-danger');
25    $discussion.find('.comment_buttons .discussion__reply .btn').addClass('btn-success');
26    $discussion.find('#discussion__btn_submit').addClass('btn-success');
27
28    jQuery(document).bind('DOMNodeInserted', function () {
29        $discussion.find('.toolbutton').addClass('btn btn-xs');
30    });
31
32}
33