Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #423 from genuino2/patch-1

Update table layout / fix a bug
commit 51a9a38d71ecf4c3f778467b4754c3e25a5c3d4d 2 parents 3ae3485 + a11eab3
@darkchaz darkchaz authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 simpleCart.js
View
6 simpleCart.js
@@ -625,7 +625,9 @@
TR = isTable ? "tr" : "div",
TH = isTable ? 'th' : 'div',
TD = isTable ? 'td' : 'div',
+ THEAD = isTable ? 'thead' : 'div',
cart_container = simpleCart.$create(TABLE),
+ thead_container = simpleCart.$create(THEAD),
header_container = simpleCart.$create(TR).addClass('headerRow'),
container = simpleCart.$(selector),
column,
@@ -636,7 +638,9 @@
container.html(' ').append(cart_container);
- cart_container.append(header_container);
+ cart_container.append(thead_container);
+
+ thead_container.append(header_container);
// create header
Please sign in to comment.
Something went wrong with that request. Please try again.