Browse Source

use a better selector

Dustin 9 years ago
parent
commit
945ac87c5d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -654,7 +654,7 @@
             row._class = $(this).attr('class');
             row._class = $(this).attr('class');
             row._data = getRealDataAttr($(this).data());
             row._data = getRealDataAttr($(this).data());
 
 
-            $(this).find('td').each(function (x) {
+            $(this).find('>td').each(function (x) {
                 var $this = $(this),
                 var $this = $(this),
                     cspan = +$this.attr('colspan') || 1,
                     cspan = +$this.attr('colspan') || 1,
                     rspan = +$this.attr('rowspan') || 1,
                     rspan = +$this.attr('rowspan') || 1,