Skip to content
This repository has been archived by the owner on Jul 25, 2021. It is now read-only.

Commit

Permalink
2017-05-01
Browse files Browse the repository at this point in the history
  • Loading branch information
clarketm committed May 2, 2017
1 parent 7d4762d commit 36d76d9
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions dist/js/tableexport.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -300,7 +297,6 @@
}
);

<<<<<<< HEAD
/**
* Removes leading/trailing whitespace from cell string
* @param string {String}
Expand All @@ -314,7 +310,6 @@
* Initializes table caption with export buttons
* @param exportButton {HTMLButtonElement}
*/
=======
function getTypeFromClass(cell) {
if (cell.hasClass('te-string')) {
return 's';
Expand All @@ -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('<caption class="' + bootstrapSpacing + self.settings.position + '">' + exportButton + '</caption>');
Expand Down

0 comments on commit 36d76d9

Please sign in to comment.