Fixed syntax of jQuery selector

We recently updated to jQuery 2.x and this requires quotes around attribute values.

Fixes #2380
Fixes #2381
This commit is contained in:
Karl Hobley 2016-03-21 15:49:05 +00:00
parent 959d72c30c
commit 9e1e12b5a6

View file

@ -362,7 +362,7 @@ function initErrorDetection() {
// now identify them on each tab
for (var index in errorSections) {
$('.tab-nav a[href=#' + index + ']').addClass('errors').attr('data-count', errorSections[index]);
$('.tab-nav a[href="#' + index + '"]').addClass('errors').attr('data-count', errorSections[index]);
}
}