Commit 500c57c5 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix js error on homepage when hideinfo element not present

Sometimes a custom theme wants to override homeinfo.tpl with some
different content for the homepage.  There's some javascript on the
homepage (to hide the homeinfo boxes) that assumes an element with the
id 'hideinfo', but custom themes should not have to define this.

Change-Id: I1a296ae7f2ab8cc532ec443eb042f3f8e9e7d977
Signed-off-by: default avatarRichard Mansfield <>
parent c02de1f4
......@@ -74,7 +74,9 @@ function nevershow() {
sendjsonrequest('homeinfo.json.php', data, 'POST', hideinfo);
addLoadEvent(function () {
$('hideinfo').onclick = nevershow;
if ($('hideinfo')) {
$('hideinfo').onclick = nevershow;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment