Reindent web/html/packages with tabs

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Johannes Löthberg 2015-07-02 16:55:14 +02:00 committed by Lukas Fleischer
parent a46f34a6c0
commit 828506e868

View file

@ -46,31 +46,31 @@ html_header($title, $details);
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
function collapseDependsList(list) { function collapseDependsList(list) {
list = $(list); list = $(list);
// Hide everything past a given limit. Don't do anything if we don't have // Hide everything past a given limit. Don't do anything if we don't have
// enough items, or the link already exists. // enough items, or the link already exists.
var limit = 20, var limit = 20,
linkid = list.attr('id') + 'link', linkid = list.attr('id') + 'link',
items = list.find('li').slice(limit); items = list.find('li').slice(limit);
if (items.length <= 1 || $('#' + linkid).length > 0) { if (items.length <= 1 || $('#' + linkid).length > 0) {
return; return;
} }
items.hide(); items.hide();
list.after('<p><a id="' + linkid + '" href="#">Show More…</a></p>'); list.after('<p><a id="' + linkid + '" href="#">Show More…</a></p>');
// add link and wire it up to show the hidden items // add link and wire it up to show the hidden items
$('#' + linkid).click(function(event) { $('#' + linkid).click(function(event) {
event.preventDefault(); event.preventDefault();
list.find('li').show(); list.find('li').show();
// remove the full <p/> node from the DOM // remove the full <p/> node from the DOM
$(this).parent().remove(); $(this).parent().remove();
}); });
} }
$(document).ready(function() { $(document).ready(function() {
collapseDependsList("#pkgdepslist"); collapseDependsList("#pkgdepslist");
collapseDependsList("#pkgreqslist"); collapseDependsList("#pkgreqslist");
collapseDependsList("#pkgsrcslist"); collapseDependsList("#pkgsrcslist");
}); });
</script> </script>