Hi i have a problem.
I am currently moving some rows from one table to another and back like this.
function moveTestcaseRowsToTestcases(){
$('.testcase-ok-head').appendTo('.testresults');
$('.testcase-failed-head').appendTo('.testresults');
$('.testcase-skipped-head').appendTo('.testresults');
$('.testcase-failed-skipped-head').appendTo('.testresults');
}
function moveTestcaseRowsToSumary(){
$('.testcase-ok-head').appendTo('.allTestcases');
$('.testcase-failed-head').appendTo('.allTestcases');
$('.testcase-skipped-head').appendTo('.allTestcases');
$('.testcase-failed-skipped-head').appendTo('.allTestcases');
}
Im moving this rows with these 4 classes from a table contaning also these classes “testcase-ok-row” “testcase-failed-row” “testcase-failed-message” “testcase-skipped-row” “testcase-skipped-message”
The rows that have these classes also have other classes like for example
“testcase-decreased” etc.
So now to my question.
When i move the rows having the “head” classes from class “testresults” to “allTestcases” everything is fine. It is when I want to put the rows back that the problem occur.
The “head” class rows are put at the bottom of the “testresults” table…
And what I want to achieve is that when I put the rows back again, I want them to be put in the exact same place as they had before I moved them.
“testcase-ok-head”
“testcase-ok-row”
“testcase-failed-head”
“testcase-failed-message”
“testcase-failed-message”
etc.
Can i accomplish this sort or is it easier to just make clones of the “head” class rows?
If so, how do I accomplish to clone all the “head” classes??
Thanks again for an amazing forum