cookutils view lighttpd/listing.js @ rev 898

Add lighttpd/*: this is for cook.slitaz.org Lighttpd-driven web interface.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu May 11 00:17:06 2017 +0300 (2017-05-11)
parents
children
line source
1 // Click on header return us to the package page
2 function setLink() {
3 document.getElementsByTagName("h2")[0].onclick = function() {
4 location.href = location.pathname.replace(/\/browse\/.*/, "");
5 }
6 }
7 document.addEventListener("DOMContentLoaded", setLink);