Select Order Items - Why Print "2"? - Printable Version +- webERP Forum (http://www.weberp.org/forum) +-- Forum: webERP Discussion (http://www.weberp.org/forum/forumdisplay.php?fid=1) +--- Forum: Problems / Bugs? (http://www.weberp.org/forum/forumdisplay.php?fid=8) +--- Thread: Select Order Items - Why Print "2"? (/showthread.php?tid=8057) Pages:
1
2
|
RE: Select Order Items - Why Print "2"? - TurboPT - 01-25-2018 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. RE: Select Order Items - Why Print "2"? - VortecCPI - 01-25-2018 Very interesting information. Thank you for clarifying. RE: Select Order Items - Why Print "2"? - TurboPT - 01-25-2018 Changes committed to SVN. Paul, (or anyone else crossing this post) to know more as to how the column sort handing is accomplished:
TIP 2: Know that the sort handling expects all the rows to have the same number of columns. RE: Select Order Items - Why Print "2"? - TimSchofield - 01-25-2018 Paul, there are some improvements to the sorting function, and also some table changes are needed on some tables to make the sort correctly. I sent this to Raphael ages ago and he was going to commit it, but I assume he has got tied up on other things. I know I have posted about exactly what needs doing and my improved sorting function at least once before so searching for it should give you the information you need. If you cannot find it drop me a line and I will see if I can dig out my correspondence with Rafael. Tim RE: Select Order Items - Why Print "2"? - TurboPT - 01-26-2018 Ok, I'll see if I can find that after the pick list stuff. RE: Select Order Items - Why Print "2"? - TimSchofield - 01-26-2018 http://www.weberp.org/forum/showthread.php?tid=7918&highlight=sort |