From 20ccb0dab9c098dc56dd45703eb88b14a4c22b34 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 14 Feb 2018 16:28:27 -0600 Subject: [PATCH] v3.0.9 --- dist/stackonly/tablesaw.stackonly.css | 2 +- dist/stackonly/tablesaw.stackonly.jquery.js | 11 +++++++---- dist/stackonly/tablesaw.stackonly.js | 11 +++++++---- dist/stackonly/tablesaw.stackonly.scss | 4 ++-- dist/tablesaw-init.js | 2 +- dist/tablesaw.css | 3 +-- dist/tablesaw.jquery.js | 11 +++++++---- dist/tablesaw.js | 11 +++++++---- package.json | 2 +- 9 files changed, 34 insertions(+), 23 deletions(-) diff --git a/dist/stackonly/tablesaw.stackonly.css b/dist/stackonly/tablesaw.stackonly.css index e571616..64aaee1 100644 --- a/dist/stackonly/tablesaw.stackonly.css +++ b/dist/stackonly/tablesaw.stackonly.css @@ -1,4 +1,4 @@ -/*! Tablesaw - v3.0.8 - 2018-01-25 +/*! Tablesaw - v3.0.9 - 2018-02-14 * https://github.com/filamentgroup/tablesaw * Copyright (c) 2018 Filament Group; Licensed MIT */ diff --git a/dist/stackonly/tablesaw.stackonly.jquery.js b/dist/stackonly/tablesaw.stackonly.jquery.js index 099e407..1f52e75 100644 --- a/dist/stackonly/tablesaw.stackonly.jquery.js +++ b/dist/stackonly/tablesaw.stackonly.jquery.js @@ -1,4 +1,4 @@ -/*! Tablesaw - v3.0.8 - 2018-01-25 +/*! Tablesaw - v3.0.9 - 2018-02-14 * https://github.com/filamentgroup/tablesaw * Copyright (c) 2018 Filament Group; Licensed MIT */ (function (root, factory) { @@ -597,9 +597,12 @@ if (Tablesaw.mustard) { if (index > 0) { $newHeader.append(document.createTextNode(", ")); } - $newHeader.append( - $sortableButton.length ? $sortableButton[0].childNodes : $header[0].childNodes - ); + + var parentNode = $sortableButton.length ? $sortableButton[0] : $header[0]; + var el; + while ((el = parentNode.firstChild)) { + $newHeader[0].appendChild(el); + } }); if ($newHeader.length && !$cell.find("." + classes.cellContentLabels).length) { diff --git a/dist/stackonly/tablesaw.stackonly.js b/dist/stackonly/tablesaw.stackonly.js index bf9095f..1906c08 100644 --- a/dist/stackonly/tablesaw.stackonly.js +++ b/dist/stackonly/tablesaw.stackonly.js @@ -1,4 +1,4 @@ -/*! Tablesaw - v3.0.8 - 2018-01-25 +/*! Tablesaw - v3.0.9 - 2018-02-14 * https://github.com/filamentgroup/tablesaw * Copyright (c) 2018 Filament Group; Licensed MIT */ /*! Shoestring - v2.0.0 - 2017-02-14 @@ -2298,9 +2298,12 @@ if (Tablesaw.mustard) { if (index > 0) { $newHeader.append(document.createTextNode(", ")); } - $newHeader.append( - $sortableButton.length ? $sortableButton[0].childNodes : $header[0].childNodes - ); + + var parentNode = $sortableButton.length ? $sortableButton[0] : $header[0]; + var el; + while ((el = parentNode.firstChild)) { + $newHeader[0].appendChild(el); + } }); if ($newHeader.length && !$cell.find("." + classes.cellContentLabels).length) { diff --git a/dist/stackonly/tablesaw.stackonly.scss b/dist/stackonly/tablesaw.stackonly.scss index 496eb1e..163f621 100644 --- a/dist/stackonly/tablesaw.stackonly.scss +++ b/dist/stackonly/tablesaw.stackonly.scss @@ -1,7 +1,7 @@ -/*! Tablesaw - v3.0.8 - 2018-01-25 +/*! Tablesaw - v3.0.9 - 2018-02-14 * https://github.com/filamentgroup/tablesaw * Copyright (c) 2018 Filament Group; Licensed MIT */ -/*! Tablesaw - v3.0.8 - 2018-01-25 +/*! Tablesaw - v3.0.9 - 2018-02-14 * https://github.com/filamentgroup/tablesaw * Copyright (c) 2018 Filament Group; Licensed MIT */ diff --git a/dist/tablesaw-init.js b/dist/tablesaw-init.js index 42672fc..a4beea1 100644 --- a/dist/tablesaw-init.js +++ b/dist/tablesaw-init.js @@ -1,4 +1,4 @@ -/*! Tablesaw - v3.0.8 - 2018-01-25 +/*! Tablesaw - v3.0.9 - 2018-02-14 * https://github.com/filamentgroup/tablesaw * Copyright (c) 2018 Filament Group; Licensed MIT */ (function(win) { diff --git a/dist/tablesaw.css b/dist/tablesaw.css index 87ddb4b..8706447 100644 --- a/dist/tablesaw.css +++ b/dist/tablesaw.css @@ -1,4 +1,4 @@ -/*! Tablesaw - v3.0.8 - 2018-01-25 +/*! Tablesaw - v3.0.9 - 2018-02-14 * https://github.com/filamentgroup/tablesaw * Copyright (c) 2018 Filament Group; Licensed MIT */ @@ -106,7 +106,6 @@ a.tablesaw-btn { color: #4d4d4d; padding-right: 2.5em; min-width: 7.25em; - text-align: left; } .tablesaw-btn-select:after { diff --git a/dist/tablesaw.jquery.js b/dist/tablesaw.jquery.js index bd6a83f..1a9ad44 100644 --- a/dist/tablesaw.jquery.js +++ b/dist/tablesaw.jquery.js @@ -1,4 +1,4 @@ -/*! Tablesaw - v3.0.8 - 2018-01-25 +/*! Tablesaw - v3.0.9 - 2018-02-14 * https://github.com/filamentgroup/tablesaw * Copyright (c) 2018 Filament Group; Licensed MIT */ (function (root, factory) { @@ -597,9 +597,12 @@ if (Tablesaw.mustard) { if (index > 0) { $newHeader.append(document.createTextNode(", ")); } - $newHeader.append( - $sortableButton.length ? $sortableButton[0].childNodes : $header[0].childNodes - ); + + var parentNode = $sortableButton.length ? $sortableButton[0] : $header[0]; + var el; + while ((el = parentNode.firstChild)) { + $newHeader[0].appendChild(el); + } }); if ($newHeader.length && !$cell.find("." + classes.cellContentLabels).length) { diff --git a/dist/tablesaw.js b/dist/tablesaw.js index 6db689c..6d56b9a 100644 --- a/dist/tablesaw.js +++ b/dist/tablesaw.js @@ -1,4 +1,4 @@ -/*! Tablesaw - v3.0.8 - 2018-01-25 +/*! Tablesaw - v3.0.9 - 2018-02-14 * https://github.com/filamentgroup/tablesaw * Copyright (c) 2018 Filament Group; Licensed MIT */ /*! Shoestring - v2.0.0 - 2017-02-14 @@ -2298,9 +2298,12 @@ if (Tablesaw.mustard) { if (index > 0) { $newHeader.append(document.createTextNode(", ")); } - $newHeader.append( - $sortableButton.length ? $sortableButton[0].childNodes : $header[0].childNodes - ); + + var parentNode = $sortableButton.length ? $sortableButton[0] : $header[0]; + var el; + while ((el = parentNode.firstChild)) { + $newHeader[0].appendChild(el); + } }); if ($newHeader.length && !$cell.find("." + classes.cellContentLabels).length) { diff --git a/package.json b/package.json index cdbea10..0359de3 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "tablesaw", "title": "Tablesaw", "description": "A set of plugins for responsive tables.", - "version": "3.0.8", + "version": "3.0.9", "homepage": "https://github.com/filamentgroup/tablesaw", "author": { "name": "Zach Leatherman",