Fix linting errors in the Javascript

This commit is contained in:
Alex Kilgour
2016-01-26 14:04:12 +00:00
parent fd2dd62478
commit 3cdbba00c1
2 changed files with 11 additions and 7 deletions

View File

@@ -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,

View File

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