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// CSV Plugin
10
11var $csv = jQuery('table tbody tr.row0 th.col0');
12
13if ($csv.length) {
14
15    $csv.each(function () {
16        var $table = jQuery(this).parents('table');
17        if ($table.find('tr.row1 th').length == 0) {
18            $table.prepend('<thead/>');
19            var $header = $table.find('tr.row0');
20            $table.find('thead').append($header);
21        }
22    });
23
24}
25