From 7ed177c7cde9e987c18d3f0c0b5b3fc6e371c814 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 29 Mar 2014 00:04:06 -0700 Subject: [PATCH] check that aside actually exists before querying the html length --- assets/home.html | 2 +- version.inc | 2 +- view/theme/redbasic/js/redbasic.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/home.html b/assets/home.html index fa0d8b3bc..0eaafb678 100644 --- a/assets/home.html +++ b/assets/home.html @@ -164,7 +164,7 @@ $(document).ready(function() {
Dream it. Do it.
-The RedMatrix (aka "red") is a highly advanced social networking platform which was created by a farmer in Australia - that grew disgusted by the lack of privacy and the increasing tendency of foreign corporations and governments to monitor and control the internet. This has strangled and subverted all that was once good about the web - and turned it into a "steaming pile of crap". (Aussies typically don't mince words.) +The RedMatrix (aka "red") is an advanced social networking platform which was created by a farmer in Australia - who grew disgusted by the lack of privacy and the increasing tendency of foreign corporations and governments to monitor and control the internet. This has strangled and subverted all that was once good about the web - and turned it into a "steaming pile of crap". (Aussies typically don't mince words.)

diff --git a/version.inc b/version.inc index 5dce4085a..080731a40 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2014-03-28.630 +2014-03-29.631 diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index 70869f44b..0aab42cd5 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -25,7 +25,7 @@ $('#expand-aside').click(function() { $('main').toggleClass('region_1-on'); }); -if ($('aside').html().length == 0) { +if($('aside').length && $('aside').html().length == 0) { $('#expand-aside').hide(); }