Handle unsupported versions.
parent
cfbc0c4e37
commit
ce3304e8c8
|
@ -44,8 +44,9 @@ $(document).ready(function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!data['version_active']) {
|
if (!data['version_active']) {
|
||||||
// Show out of date header when this version isn't active
|
|
||||||
$('.rst-current-version').addClass('rst-out-of-date')
|
$('.rst-current-version').addClass('rst-out-of-date')
|
||||||
|
} else if (!data['version_supported']) {
|
||||||
|
$('.rst-current-version').addClass('rst-active-old-version')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function () {
|
error: function () {
|
||||||
|
|
Loading…
Reference in New Issue