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// Explain Plugin
10
11var $explain = jQuery('.explain');
12
13if ($explain.length) {
14
15    $explain.each(function () {
16
17        var $self = jQuery(this),
18            $tooltip = $self.find('.tooltip');
19
20        $self.attr({
21            'data-toggle': 'tooltip',
22            'data-placement': 'bottom',
23            'title': $tooltip.html(),
24        }).addClass('wikilink1').removeClass('explain');
25
26        $tooltip.remove();
27
28    });
29
30    jQuery('[data-toggle="tooltip"]').tooltip();
31
32}
33