// 拠点移動のURLの取得・移動
function moveExecution(f) {
(中略)
var url = 0 > f && obj.prev ? obj.prev : 0 < f && obj.next ? obj.next : null;
url ? location.href = url : void 0;
}
上記部分を下記と差し替え
// 拠点移動のURLの取得・移動
function moveExecution(f) {
let $list = $('#sideboxBottom div:first li').filter(function(){return $(this).hasClass('on') || $(this).children('a').length;});
let i = $list.index($('#sideboxBottom li.on'));
let prev = $list.eq(i-1).length ? $list.eq(i-1).children('a').attr('href') : $list.eq($list.length - 1).children('a').attr('href');
let next = $list.eq(i+1).length ? $list.eq(i+1).children('a').attr('href') : $list.eq(0).children('a').attr('href');
if ($('#repair_central_form').length) {
prev = prev.replace('map', 'village');
next = next.replace('map', 'village');
}
var url = 0 > f && prev ? prev : 0 < f && next ? next : null;
if (url) {
location.href = url;
}
}