Add better table links

This commit is contained in:
ruan 2015-09-10 16:27:29 +02:00
parent 0adc356af5
commit ac6c08388c
4 changed files with 9 additions and 4 deletions

View File

@ -17,11 +17,11 @@ body {
border-radius: 2px; border-radius: 2px;
} }
table tr td a { /*table tr td a {
display: block; display: block;
height: 100%; height: 100%;
width: 100%; width: 100%;
} }*/
table tr td { table tr td {
padding-left: 0; padding-left: 0;
@ -35,6 +35,10 @@ a:focus {
text-decoration: none !important; text-decoration: none !important;
} }
tr.hover {
cursor: pointer;
}
.pager-active { .pager-active {
color: darkcyan; color: darkcyan;
} }

View File

@ -1,2 +0,0 @@
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="includes/js/bootstrap.min.js"></script>

View File

@ -22,3 +22,5 @@ $settings = new Settings(false);
</div> </div>
</div> </div>
</div> </div>
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="includes/js/bootstrap.min.js"></script>

View File

@ -275,5 +275,6 @@ class Page {
public function table_end() { public function table_end() {
echo '</table>'; echo '</table>';
echo "<script type=\"text/javascript\">$('tr').click(function(){window.location=$(this).find('a').attr('href');}).hover(function(){\$(this).toggleClass('hover');});</script>";
} }
} }