check that aside actually exists before querying the html length

This commit is contained in:
friendica 2014-03-29 00:04:06 -07:00
parent 86ec665565
commit 7ed177c7cd
3 changed files with 3 additions and 3 deletions

View file

@ -164,7 +164,7 @@ $(document).ready(function() {
<img style="width: 450px; margin-bottom: 30px;" src="assets/logo_simplifiedap.png" >
<div style="color:#808080;font-weight:bold;font-size:3.0em; margin-bottom:30px;">Dream it. Do it.</div>
<div class="tr" style="font-size: 1.6em; color: #666; margin-left: 75px; margin-right: 75px;">
The RedMatrix (aka "red") is a highly advanced social networking platform which was created by a <a style="color: #555;" href="#" class="cb">farmer in Australia</a> - 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 <a style="color: #555;" href="#" class="cb">farmer in Australia</a> - 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.)
</div>
<br />
<div class="tr" style="font-size: 1.6em; color: #666; margin-left: 75px; margin-right: 75px;">

View file

@ -1 +1 @@
2014-03-28.630
2014-03-29.631

View file

@ -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();
}