diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-07-02 16:55:14 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-08-08 12:59:23 +0200 |
commit | 828506e868aea994d8fb842ac1391d439cecca69 (patch) | |
tree | d7e586986bb789a5ca2ae143cdf8940ec9f71865 /web/html/packages.php | |
parent | a46f34a6c09ac8f26a71b4865d9bf87f2e88b2e8 (diff) |
Reindent web/html/packages with tabs
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/html/packages.php')
-rw-r--r-- | web/html/packages.php | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/web/html/packages.php b/web/html/packages.php index 75a574e..bf3daf8 100644 --- a/web/html/packages.php +++ b/web/html/packages.php @@ -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"> function collapseDependsList(list) { - list = $(list); - // Hide everything past a given limit. Don't do anything if we don't have - // enough items, or the link already exists. - var limit = 20, - linkid = list.attr('id') + 'link', - items = list.find('li').slice(limit); - if (items.length <= 1 || $('#' + linkid).length > 0) { - return; - } - items.hide(); - list.after('<p><a id="' + linkid + '" href="#">Show More…</a></p>'); + list = $(list); + // Hide everything past a given limit. Don't do anything if we don't have + // enough items, or the link already exists. + var limit = 20, + linkid = list.attr('id') + 'link', + items = list.find('li').slice(limit); + if (items.length <= 1 || $('#' + linkid).length > 0) { + return; + } + items.hide(); + list.after('<p><a id="' + linkid + '" href="#">Show More…</a></p>'); - // add link and wire it up to show the hidden items - $('#' + linkid).click(function(event) { - event.preventDefault(); - list.find('li').show(); - // remove the full <p/> node from the DOM - $(this).parent().remove(); - }); + // add link and wire it up to show the hidden items + $('#' + linkid).click(function(event) { + event.preventDefault(); + list.find('li').show(); + // remove the full <p/> node from the DOM + $(this).parent().remove(); + }); } $(document).ready(function() { - collapseDependsList("#pkgdepslist"); - collapseDependsList("#pkgreqslist"); - collapseDependsList("#pkgsrcslist"); + collapseDependsList("#pkgdepslist"); + collapseDependsList("#pkgreqslist"); + collapseDependsList("#pkgsrcslist"); }); </script> |