Stopped links in grid triggering detail view in chrome.

Fixed grid header in FF.
pull/4/head
Mark McDowall 13 years ago
parent aba44fb121
commit b9d227d162

@ -281,48 +281,49 @@ button span, input[type="button"] span, input[type="submit"] span, input[type="r
} }
.seriesTable .seriesTable
{ {
width: 100%; width: 100%;
border-width: 1px; border-width: 1px;
border-spacing: 2px; border-spacing: 2px;
border-style: none; border-style: none;
border-color: white; border-color: white;
border-collapse: collapse; border-collapse: collapse;
} }
.seriesTable th .seriesTable th
{ {
font-family: "Segoe UI Light" , "Open Sans" , "Segoe UI" , sans-serif; font-family: "Segoe UI Light" , "Open Sans" , "Segoe UI" , sans-serif;
border-width: 300; border-width: 300;
font-size: 17px; font-size: 17px;
padding: 2px; padding: 2px;
border-style: inset; border-style: none;
border-color: #EEEEEE; border-color: #EEEEEE;
padding-left: 7px; padding-left: 7px;
text-align: left; text-align: left;
background-color: white; background-color: white;
font-weight: lighter; font-weight: lighter;
} }
.seriesTable td
{
border-width: 1px;
padding: 0px 8px 0px 8px;
border-style: inset;
border-color: #EEEEEE;
}
.seriesTable td .detail-view
{ {
border-width: 1px; display: none;
padding: 0px 8px 0px 8px; }
border-style: inset;
border-color: #EEEEEE;
}
.detail-view /* Colour alternating rows */
{ .seriesTable tr:nth-child(4n)
display: none; {
} background: #f0f5ff;
}
/* Colour alternating rows */ .seriesTable tr:nth-child(4n+1)
.seriesTable tr:nth-child(4n) {
{ background: #f0f5ff;
background: #f0f5ff; }
}
.seriesTable tr:nth-child(4n+1)
{
background: #f0f5ff;
}

@ -1,8 +1,9 @@
/* Click on row, show details */ /* Click on row, show details */
$('.seriesTable a').live('click', function () { $('.seriesTable a').live('click', function (event) {
event.preventDefault();
var link = $(this).attr('href'); var link = $(this).attr('href');
window.location = link; window.location = link;
event.preventDefault(); event.stopPropegation();
}); });
$('.seriesTable tr td:not(:last-child)').live('click', function () { $('.seriesTable tr td:not(:last-child)').live('click', function () {

Loading…
Cancel
Save