attributes contain strings, not booleans

This commit is contained in:
El RIDO 2018-03-04 11:47:58 +01:00
parent 76debde85b
commit 0938b59b90
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
3 changed files with 4 additions and 5 deletions

View file

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