HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/LHouwen/dokuwiki.logic.nl/wwwroot/lib/tpl/bootstrap3/js/plugins/data.js
/*
 * DokuWiki Bootstrap3 Template: Plugins Hacks!
 *
 * Home     http://dokuwiki.org/template:bootstrap3
 * Author   Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
 * License  GPL 2 (http://www.gnu.org/licenses/gpl.html)
 */

// Data Plugin

var $dataplugin_entry = jQuery('.dataplugin_entry'),
    $dataplugin_table = jQuery('.dataplugin_table');

// Data Plugin: Entry
if ($dataplugin_entry.length) {
  $dataplugin_entry.find('dl').addClass('panel panel-default');
}


// Data Plugin: Table
if ($dataplugin_table.length) {

  $dataplugin_table.find('input').addClass('input-sm');

  var $header = $dataplugin_table.find('th[style]'),
      $inputs = $dataplugin_table.find('th input'),
      header_width = [],
      i = 0;

  $header.each(function() {
    header_width.push(this.style.width);
  });

  $inputs.each(function() {
    this.style.width = header_width[i];
    i++;
  });

}