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

@@ -28,7 +28,7 @@ module.exports = function (grunt) {
es3: false,
indent: 4,
latedef: false,
maxcomplexity: 4,
maxcomplexity: 6,
maxdepth: 2,
maxlen: 100,
maxparams: 4,

View File

@@ -304,9 +304,13 @@ $(document).ready(function(){
e.preventDefault();
e.stopPropagation();
}
};
$('[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
);
});