vendor/assets/javascripts/extensions/_cohort.js in active_frontend-14.1.2 vs vendor/assets/javascripts/extensions/_cohort.js in active_frontend-14.1.3

- old
+ new

@@ -216,10 +216,15 @@ if ((className = options.className)) { delete options.className; el.className = prefixClass(className, config.classPrefix); } + if ((baseClassName = options.baseClassName)) { + delete options.baseClassName; + el.className = baseClassName; + } + if (!isEmpty(options.text)) { var text = options.text.toString(); setText(el, text); delete options.text; } @@ -333,19 +338,21 @@ return fragment; } var mainContainer = create('div', { className: 'container' }), + responsive = create('div', { baseClassName: 'table-responsive' }), table = create('table', { className: 'table' }); table.appendChild(drawHeader(values)); table.appendChild(drawCells(values)); if ((title = config.title)) { mainContainer.appendChild(create('div', { text: title, className: 'title' })); } - mainContainer.appendChild(table); + responsive.appendChild(table); + mainContainer.appendChild(responsive); container.innerHTML = ''; container.appendChild(mainContainer); };