aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-29 00:04:06 -0700
committerfriendica <info@friendica.com>2014-03-29 00:04:06 -0700
commit7ed177c7cde9e987c18d3f0c0b5b3fc6e371c814 (patch)
treec619ecb923ddd9643e467f6aa48243a787159720 /view/theme
parent86ec665565059a6db97d598ebb7c9dba94f96d56 (diff)
downloadvolse-hubzilla-7ed177c7cde9e987c18d3f0c0b5b3fc6e371c814.tar.gz
volse-hubzilla-7ed177c7cde9e987c18d3f0c0b5b3fc6e371c814.tar.bz2
volse-hubzilla-7ed177c7cde9e987c18d3f0c0b5b3fc6e371c814.zip
check that aside actually exists before querying the html length
Diffstat (limited to 'view/theme')
-rw-r--r--view/theme/redbasic/js/redbasic.js2
1 files changed, 1 insertions, 1 deletions
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();
}