Resolve "Filter Battery dropdown according to vehicle" #814

Merged
arcticzero merged 2 commits from 1-filter-battery-dropdown-according-to-vehicle into master 2018-02-17 06:48:28 +00:00
Showing only changes of commit e360fbbbd2 - Show all commits

View file

@ -1,5 +1,10 @@
$(function() {
$(document).ajaxError(function(event, response, ajaxSettings, thrownError) {
if (response.statusText === "abort") {
// we do not catch aborted calls
return;
}
switch (response.status) {
case 422:
// we leave 422 handling to individual calls