mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-02 22:45:10 -04:00
attributes contain strings, not booleans
This commit is contained in:
parent
76debde85b
commit
0938b59b90
3 changed files with 4 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue