cookutils diff lighttpd/listing.js @ rev 923
cook: fix copying stuff/applications & stuff/licenses, don't update chroot twice in update_chroot(); lighttpd/index.cgi: reset percentage for packages with undefined previous cooking time.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Jun 11 00:01:29 2017 +0300 (2017-06-11) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/lighttpd/listing.js Sun Jun 11 00:01:29 2017 +0300 1.3 @@ -0,0 +1,7 @@ 1.4 +// Click on header return us to the package page 1.5 +function setLink() { 1.6 + document.getElementsByTagName("h2")[0].onclick = function() { 1.7 + location.href = location.pathname.replace(/\/browse\/.*/, ""); 1.8 + } 1.9 +} 1.10 +document.addEventListener("DOMContentLoaded", setLink);