Skip to content

Commit

Permalink
Merge pull request kayalshri#18 from simogeo/patch-1
Browse files Browse the repository at this point in the history
adding td as delimiter when generating header row
  • Loading branch information
hhurz committed Jun 16, 2015
2 parents 4b0c2ef + 7ae58ee commit 3acd982
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tableExport.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ THE SOFTWARE.*/
var rowIndex = 0;
$(el).find('thead').find(defaults.theadSelector).each(function() {
tdData += "\n";
$(this).filter(':visible').find('th').each(function(index,data) {
$(this).filter(':visible').find('th,td').each(function(index,data) {
if ($(this).css('display') != 'none' &&
$(this).data("tableexport-display") != 'none'){
if(defaults.ignoreColumn.indexOf(index) == -1){
Expand Down Expand Up @@ -114,7 +114,7 @@ THE SOFTWARE.*/
var tdData ="INSERT INTO `"+defaults.tableName+"` (";
$(el).find('thead').find(defaults.theadSelector).each(function() {

$(this).filter(':visible').find('th').each(function(index,data) {
$(this).filter(':visible').find('th,td').each(function(index,data) {
if ($(this).css('display') != 'none' &&
$(this).data("tableexport-display") != 'none'){
if(defaults.ignoreColumn.indexOf(index) == -1){
Expand Down Expand Up @@ -173,7 +173,7 @@ THE SOFTWARE.*/
var jsonArrayTd = [];
var rowIndex = 0;

$(this).filter(':visible').find('th').each(function(index,data) {
$(this).filter(':visible').find('th,td').each(function(index,data) {
if ($(this).css('display') != 'none' &&
$(this).data("tableexport-display") != 'none'){
if(defaults.ignoreColumn.indexOf(index) == -1){
Expand Down Expand Up @@ -235,7 +235,7 @@ THE SOFTWARE.*/

// Header
$(el).find('thead').find(defaults.theadSelector).each(function() {
$(this).filter(':visible').find('th').each(function(index,data) {
$(this).filter(':visible').find('th,td').each(function(index,data) {
if ($(this).css('display') != 'none' &&
$(this).data("tableexport-display") != 'none'){
if(defaults.ignoreColumn.indexOf(index) == -1){
Expand Down Expand Up @@ -438,7 +438,7 @@ THE SOFTWARE.*/
$(el).find('thead').find(defaults.theadSelector).each(function() {
var rowIndex = 0;

$(this).filter(':visible').find('th').each(function(index,data) {
$(this).filter(':visible').find('th,td').each(function(index,data) {
if ($(this).css('display') != 'none' &&
$(this).data("tableexport-display") != 'none'){
if(defaults.ignoreColumn.indexOf(index) == -1){
Expand Down

0 comments on commit 3acd982

Please sign in to comment.