Fix linting errors

This commit is contained in:
Alex Kilgour
2016-02-01 21:36:23 +00:00
parent fc510b328a
commit cc7f769653
2 changed files with 19 additions and 18 deletions

View File

@@ -46,7 +46,7 @@ $(document).ready(function(){
}, },
points: { points: {
fill: true, fill: true,
fillColor: "rgb(255, 255, 255)" fillColor: 'rgb(255, 255, 255)'
}, },
shadowSize: 0, shadowSize: 0,
grid: { grid: {
@@ -186,45 +186,46 @@ $(document).ready(function(){
table.prev('div').remove(); table.prev('div').remove();
if (errors.length) { if (errors.length) {
var icon = errors.parent().prev().children('div'); var errorIcon = errors.parent().prev().children('div');
icon.css({ errorIcon.css({
padding: 3 padding: 3
}); });
icon.find('div').css({ errorIcon.find('div').css({
width: '25px', width: '25px',
borderWidth: 3, borderWidth: 3,
borderBottom: 0, borderBottom: 0,
borderLeft: 0, borderLeft: 0,
borderRight: 0, borderRight: 0,
}) });
} }
if (warnings.length) { if (warnings.length) {
var icon = warnings.parent().prev().children('div'); var warningIcon = warnings.parent().prev().children('div');
icon.addClass('clearfix').css({ warningIcon.addClass('clearfix').css({
padding: 3 padding: 3
}); });
icon.find('div').clone().appendTo(icon[0]); warningIcon.find('div').clone().appendTo(warningIcon[0]);
icon.find('div').css({ warningIcon.find('div').css({
float: 'left', float: 'left',
width: '10px', width: '10px',
borderWidth: 3, borderWidth: 3,
borderBottom: 0, borderBottom: 0,
borderLeft: 0, borderLeft: 0,
borderRight: 0, borderRight: 0,
}) });
icon.find('div:first-child').css({ warningIcon.find('div:first-child').css({
marginRight: '5px' marginRight: '5px'
}); });
} }
if (notices.length) { if (notices.length) {
var icon = notices.parent().prev().children('div'); var noticeIcon = notices.parent().prev().children('div');
icon.addClass('clearfix').css({ noticeIcon.addClass('clearfix').css({
padding: 3 padding: 3
}); });
icon.find('div').clone().appendTo(icon[0]).end().clone().appendTo(icon[0]); noticeIcon.find('div').clone().appendTo(noticeIcon[0]).end()
icon.find('div').css({ .clone().appendTo(noticeIcon[0]);
noticeIcon.find('div').css({
float: 'left', float: 'left',
width: '5px', width: '5px',
marginRight: '5px', marginRight: '5px',
@@ -232,8 +233,8 @@ $(document).ready(function(){
borderBottom: 0, borderBottom: 0,
borderLeft: 0, borderLeft: 0,
borderRight: 0, borderRight: 0,
}) });
icon.find('div:last-child').css({ noticeIcon.find('div:last-child').css({
marginRight: '0' marginRight: '0'
}); });
} }

File diff suppressed because one or more lines are too long