You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
613 B

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