still have to completely figure out and centralize the currently working JavaScript
This commit is contained in:
parent
8b0021fcc0
commit
8a18b71dfe
12
static/javascript.js
Normal file
12
static/javascript.js
Normal file
@ -0,0 +1,12 @@
|
||||
$(function() {
|
||||
$("td[colspan=7]").find("p").hide();
|
||||
$("table").click(function(event) {
|
||||
event.stopPropagation();
|
||||
var $target = $(event.target);
|
||||
if ( $target.closest("td").attr("colspan") > 1 ) {
|
||||
$target.slideUp();
|
||||
} else {
|
||||
$target.closest("tr").next().find("p").slideToggle();
|
||||
}
|
||||
});
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user