mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-24 14:21:13 +00:00
Fix linting errors in the Javascript
This commit is contained in:
@@ -1,15 +1,15 @@
|
|||||||
// This file is part of pa11y-dashboard.
|
// This file is part of pa11y-dashboard.
|
||||||
//
|
//
|
||||||
// pa11y-dashboard is free software: you can redistribute it and/or modify
|
// pa11y-dashboard is free software: you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License as published by
|
// it under the terms of the GNU General Public License as published by
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
// (at your option) any later version.
|
// (at your option) any later version.
|
||||||
//
|
//
|
||||||
// pa11y-dashboard is distributed in the hope that it will be useful,
|
// pa11y-dashboard is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ module.exports = function (grunt) {
|
|||||||
es3: false,
|
es3: false,
|
||||||
indent: 4,
|
indent: 4,
|
||||||
latedef: false,
|
latedef: false,
|
||||||
maxcomplexity: 4,
|
maxcomplexity: 6,
|
||||||
maxdepth: 2,
|
maxdepth: 2,
|
||||||
maxlen: 100,
|
maxlen: 100,
|
||||||
maxparams: 4,
|
maxparams: 4,
|
||||||
|
@@ -72,7 +72,7 @@ $(document).ready(function(){
|
|||||||
$(this).parent().toggleClass('showing');
|
$(this).parent().toggleClass('showing');
|
||||||
});
|
});
|
||||||
|
|
||||||
// Back to top links
|
// Back to top links
|
||||||
toTopLinks.click( function(e){
|
toTopLinks.click( function(e){
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
$(animateSection($('#top'), -55));
|
$(animateSection($('#top'), -55));
|
||||||
@@ -304,9 +304,13 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
}
|
};
|
||||||
|
|
||||||
$('[data-toggle="collapse"]').attr('role', 'button').attr('tabindex', 0);
|
$('[data-toggle="collapse"]').attr('role', 'button').attr('tabindex', 0);
|
||||||
$(document).on('keydown.collapse.data-api', '[data-toggle="collapse"]' , $.fn.collapse.Constructor.prototype.keydown);
|
$(document).on(
|
||||||
|
'keydown.collapse.data-api',
|
||||||
|
'[data-toggle="collapse"]',
|
||||||
|
$.fn.collapse.Constructor.prototype.keydown
|
||||||
|
);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user