From 0938b59b90d692b939c46dbd9ffa1d7bd6ab651a Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 4 Mar 2018 11:47:58 +0100 Subject: [PATCH] attributes contain strings, not booleans --- js/privatebin.js | 5 ++--- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index a7c2207..1c1c99a 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -2730,15 +2730,14 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { }; /** - * collapses the navigation bar if nedded + * collapses the navigation bar, only if expanded * * @name TopNav.collapseBar * @function */ me.collapseBar = function() { - if ($('#navbar').attr('aria-expanded')) { - // if so, toggle it + if ($('#navbar').attr('aria-expanded') == 'true') { $('.navbar-toggle').click(); } }; diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 19f9e27..40c4739 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -75,7 +75,7 @@ if ($MARKDOWN): - + diff --git a/tpl/page.php b/tpl/page.php index 356c82a..09456b7 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -54,7 +54,7 @@ if ($QRCODE): - +