mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Fix JavaScript error on packages overview page
This commit is contained in:
parent
959e535126
commit
512f8064c1
1 changed files with 5 additions and 0 deletions
|
@ -49,6 +49,11 @@ html_header($title, $details);
|
|||
<script type="text/javascript">
|
||||
function collapseDependsList(list) {
|
||||
list = document.getElementById(list);
|
||||
// Packages overview page also triggers collapseDependsList, ideally the Javascript
|
||||
// is only included for the package details view.
|
||||
if (!list) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Hide everything past a given limit. Don't do anything if we don't have
|
||||
// enough items, or the link already exists.
|
||||
|
|
Loading…
Add table
Reference in a new issue