From 36d76d9a9f97feded5cd53a4aaf8bd6f12567afe Mon Sep 17 00:00:00 2001 From: Travis Clarke Date: Mon, 1 May 2017 18:50:45 -0700 Subject: [PATCH] 2017-05-01 --- dist/js/tableexport.js | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/dist/js/tableexport.js b/dist/js/tableexport.js index 4764036..a6724d2 100644 --- a/dist/js/tableexport.js +++ b/dist/js/tableexport.js @@ -98,13 +98,13 @@ break; } } - return new Array(total).push({'val': $(val).text(), 'type': getTypeFromClass($(val))}); + return new Array(total).push({ + 'val': $(val).text(), + 'type': getTypeFromClass($(val)) + }); } -<<<<<<< HEAD - return formatValue($(val).text()); -======= + // return formatValue($(val).text()); return {'val': $(val).text(), 'type': getTypeFromClass($(val))}; ->>>>>>> eba4197235c01fe6fa9fcb1a714f1fb33d58395e }).get()]; }).get(), dataObject = TableExport.prototype.escapeHtml( @@ -158,13 +158,13 @@ break; } } - return new Array(total).push({'val': $(val).text(), 'type': getTypeFromClass($(val))}); + return new Array(total).push({ + 'val': $(val).text(), + 'type': getTypeFromClass($(val)) + }); } -<<<<<<< HEAD - return formatValue($(val).text()); -======= + // return formatValue($(val).text()); return {'val': $(val).text(), 'type': getTypeFromClass($(val))}; ->>>>>>> eba4197235c01fe6fa9fcb1a714f1fb33d58395e }).get()]; }).get(), dataObject = TableExport.prototype.escapeHtml( @@ -197,11 +197,8 @@ if ($(val).is(emptyCSS)) { return " " } -<<<<<<< HEAD - return formatValue($(val).text()); -======= + // return formatValue($(val).text()); return {'val': $(val).text(), 'type': getTypeFromClass($(val))}; ->>>>>>> eba4197235c01fe6fa9fcb1a714f1fb33d58395e }).get().join(colD); }).get().join(rdel), dataObject = TableExport.prototype.escapeHtml( @@ -300,7 +297,6 @@ } ); -<<<<<<< HEAD /** * Removes leading/trailing whitespace from cell string * @param string {String} @@ -314,7 +310,6 @@ * Initializes table caption with export buttons * @param exportButton {HTMLButtonElement} */ -======= function getTypeFromClass(cell) { if (cell.hasClass('te-string')) { return 's'; @@ -332,7 +327,6 @@ return doc.documentElement.textContent; } ->>>>>>> eba4197235c01fe6fa9fcb1a714f1fb33d58395e function checkCaption(exportButton) { var $caption = $el.find('caption:not(.head)'); $caption.length ? $caption.append(exportButton) : $el.prepend('' + exportButton + '');