Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Select Order Items - Why Print "2"?
01-25-2018, 08:24 AM, (This post was last modified: 01-25-2018, 08:44 AM by TurboPT.)
#11
RE: Select Order Items - Why Print "2"?
Believe it or not, the 'selection' CSS actually has nothing to do with the sorting. The sort handling references the <th> tag styles that have 'ascending' set and then javascript uses this reference to do the sorting.

What breaks the sorting -- for that specific table -- is actually the first and last rows that have the buttons.

So, if the first row is wrapped in a <thead> tag, and the last row in a <tfoot> tag, then the sorting is ok without any change to the <table> tag style. No <tbody> necessary either, though that was a good idea, and I'll likely keep that change too.

I'll make those changes (without the 'selection') and commit, as I noted another existing CSS improvement that can be applied in the same area as well.
Reply


Messages In This Thread
RE: Select Order Items - Why Print "2"? - by TurboPT - 01-25-2018, 08:24 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)