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// Overlay Plugin
10var $overlay = jQuery('#overlay');
11
12if ($overlay.length) {
13
14    $overlay.addClass('panel panel-default small');
15
16    $overlay.css('border', jQuery('.panel').css('border'));
17    $overlay.css('background', jQuery('.panel').css('background'));
18
19    var $title = $overlay.find('.close'),
20        $btn = $title.find('a');
21
22    $btn.wrapAll('<ul class="text-right list-inline dw-action-icon" />');
23    $btn.wrap('<li/>');
24    $btn.addClass('text-muted');
25
26    $title.nextAll().wrapAll('<div class="panel-body" />');
27    $title.removeClass('close').addClass('panel-heading');
28
29}
30