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

View File

@ -75,7 +75,7 @@ if ($MARKDOWN):
<?php
endif;
?>
<script type="text/javascript" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-4UWESerlTU/BJPR9ew+ILaiLunjhQa+9asT2/1MY2zQ2dSxnJ3orDUFOq4CU+KrnkK/9sWwmUobshOUGkVMygQ==" crossorigin="anonymous"></script>
<script type="text/javascript" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-4FhlV3SGdZZDDRIrK5D2Puk62mehFojDOjm0wvOlhuHBxSKSXw5erCi869ZDa/cz6j27b9KidKBnB5XlF+EAkA==" crossorigin="anonymous"></script>
<!--[if lt IE 10]>
<style type="text/css">body {padding-left:60px;padding-right:60px;} #ienotice {display:block;} #oldienotice {display:block;}</style>
<![endif]-->

View File

@ -54,7 +54,7 @@ if ($QRCODE):
<?php
endif;
?>
<script type="text/javascript" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-4UWESerlTU/BJPR9ew+ILaiLunjhQa+9asT2/1MY2zQ2dSxnJ3orDUFOq4CU+KrnkK/9sWwmUobshOUGkVMygQ==" crossorigin="anonymous"></script>
<script type="text/javascript" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-4FhlV3SGdZZDDRIrK5D2Puk62mehFojDOjm0wvOlhuHBxSKSXw5erCi869ZDa/cz6j27b9KidKBnB5XlF+EAkA==" crossorigin="anonymous"></script>
<!--[if lt IE 10]>
<style type="text/css">body {padding-left:60px;padding-right:60px;} #ienotice {display:block;} #oldienotice {display:block;}</style>
<![endif]-->