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.
 
 
 
 
 

40 lines
930 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. // Data Plugin
  9. var $dataplugin_entry = jQuery('.dataplugin_entry'),
  10. $dataplugin_table = jQuery('.dataplugin_table');
  11. // Data Plugin: Entry
  12. if ($dataplugin_entry.length) {
  13. $dataplugin_entry.find('dl').addClass('panel panel-default');
  14. }
  15. // Data Plugin: Table
  16. if ($dataplugin_table.length) {
  17. $dataplugin_table.find('input').addClass('input-sm');
  18. var $header = $dataplugin_table.find('th[style]'),
  19. $inputs = $dataplugin_table.find('th input'),
  20. header_width = [],
  21. i = 0;
  22. $header.each(function () {
  23. header_width.push(this.style.width);
  24. });
  25. $inputs.each(function () {
  26. this.style.width = header_width[i];
  27. i++;
  28. });
  29. }