|
1 |
| -/*! Tablesaw - v3.0.9 - 2018-12-07 |
| 1 | +/*! Tablesaw - v3.1.0 - 2018-12-10 |
2 | 2 | * https://github.com/filamentgroup/tablesaw
|
3 | 3 | * Copyright (c) 2018 Filament Group; Licensed MIT */
|
4 | 4 | (function (root, factory) {
|
@@ -303,20 +303,21 @@ if (Tablesaw.mustard) {
|
303 | 303 |
|
304 | 304 | Table.prototype._findPrimaryHeadersForCell = function(cell) {
|
305 | 305 | var $headerRow = this._getPrimaryHeaderRow();
|
306 |
| - var $headers = this._getPrimaryHeaderCells($headerRow); |
307 | 306 | var headerRowIndex = this._getRowIndex($headerRow);
|
308 | 307 | var results = [];
|
309 | 308 |
|
310 | 309 | for (var rowNumber = 0; rowNumber < this.headerMapping.length; rowNumber++) {
|
311 | 310 | if (rowNumber === headerRowIndex) {
|
312 | 311 | continue;
|
313 | 312 | }
|
| 313 | + |
314 | 314 | for (var colNumber = 0; colNumber < this.headerMapping[rowNumber].length; colNumber++) {
|
315 | 315 | if (this.headerMapping[rowNumber][colNumber] === cell) {
|
316 |
| - results.push($headers[colNumber]); |
| 316 | + results.push(this.headerMapping[headerRowIndex][colNumber]); |
317 | 317 | }
|
318 | 318 | }
|
319 | 319 | }
|
| 320 | + |
320 | 321 | return results;
|
321 | 322 | };
|
322 | 323 |
|
@@ -635,7 +636,7 @@ if (Tablesaw.mustard) {
|
635 | 636 | this.$table.removeClass(classes.stackTable);
|
636 | 637 | this.$table.find("." + classes.cellLabels).remove();
|
637 | 638 | this.$table.find("." + classes.cellContentLabels).each(function() {
|
638 |
| - $(this).replaceWith(this.childNodes); |
| 639 | + $(this).replaceWith($(this.childNodes)); |
639 | 640 | });
|
640 | 641 | };
|
641 | 642 |
|
@@ -839,7 +840,7 @@ if (Tablesaw.mustard) {
|
839 | 840 | "</span></a>"
|
840 | 841 | );
|
841 | 842 | $popup = $("<div class='" + this.classes.popup + "' id='" + id + "'></div>");
|
842 |
| - $menu = $("<div class='btn-group'></div>"); |
| 843 | + $menu = $("<div class='tablesaw-btn-group'></div>"); |
843 | 844 |
|
844 | 845 | this.$popup = $popup;
|
845 | 846 |
|
|
0 commit comments