Commit 30d5243b authored by Leigh B Stoller's avatar Leigh B Stoller

Minor table fix.

parent d34d537e
...@@ -167,13 +167,16 @@ $(function () ...@@ -167,13 +167,16 @@ $(function ()
}); });
}; };
// Only init/show tables that have something in them. // Only init/show tables that have something in them.
if ($('#images-table-no-profiles tbody').children().length) { if ($('#' + name + ' #images-table-no-profiles tbody')
.children().length) {
TableInit('images-table-no-profiles'); TableInit('images-table-no-profiles');
} }
if ($('#images-table-one-profile tbody').children().length) { if ($('#' + name + ' #images-table-one-profile tbody')
.children().length) {
TableInit('images-table-one-profile'); TableInit('images-table-one-profile');
} }
if ($('#images-table-multi-profile tbody').children().length) { if ($('#' + name + ' #images-table-multi-profile tbody')
.children().length) {
TableInit('images-table-multi-profile'); TableInit('images-table-multi-profile');
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment