fixed dom selection issue

This commit is contained in:
John Bender 2011-11-14 09:38:27 -08:00
parent 1675d44bff
commit db87885f60

View file

@ -21,7 +21,7 @@
$.get("../", searchMap, function(data) {
$.each(data, function( i, avg ) {
var tablename = avg.point + " " + avg.agent + " " + avg.pathname + " " + avg.agent_version,
$table = $( "table > caption:contains(" + tablename + ")");
$table = $( "table > caption:contains(" + tablename + ")").parent();
if( !$table.length ) {
$table = $( "<table></table>", {