Widget:WJG UserExamQuery: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Undo revision 1000199 by William J Gibson (talk) |
||
Line 78: | Line 78: | ||
} | } | ||
if($(value.questions).length > 0){ | if($(value.questions).length > 0){ | ||
var wjg_string="<tr | var wjg_string="<tr>"+ | ||
"<td>"+value.id +"</td>" + | "<td>"+value.id +"</td>" + | ||
"<td>" + timeBegin + "</td>" + | "<td>" + timeBegin + "</td>" + | ||
Line 109: | Line 109: | ||
}); | }); | ||
}); | }); | ||
$("tr:odd").addClass("odd"); | |||
$("tr:not(.odd)").hide(); | |||
$("tr:first-child").show(); | |||
$("tr.odd").click(function(){ | |||
$(this).next("tr").toggle(); | |||
$(this).find(".arrow").toggleClass("up"); | |||
}); | |||
}; | }; | ||