Permalink
Browse files

Merge pull request #113 from rmagrin/master

tableToGrid: verify if there are checkboxes or radioboxes only in the first column
  • Loading branch information...
tonytomov committed Jul 14, 2011
2 parents 05b9391 + fa86f03 commit d0f9f7478041053c93e634004d8439c3da1d1ea4
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/grid.tbltogrid.js
View
@@ -13,8 +13,8 @@ jQuery(selector).each(function() {
var w = jQuery(this).width();
// Text whether we have single or multi select
- var inputCheckbox = jQuery('input[type=checkbox]:first', jQuery(this));
- var inputRadio = jQuery('input[type=radio]:first', jQuery(this));
+ var inputCheckbox = jQuery('tr td:first-child input[type=checkbox]:first', jQuery(this));
+ var inputRadio = jQuery('tr td:first-child input[type=radio]:first', jQuery(this));
var selectMultiple = inputCheckbox.length > 0;
var selectSingle = !selectMultiple && inputRadio.length > 0;
var selectable = selectMultiple || selectSingle;

0 comments on commit d0f9f74

Please sign in to comment.