diff --git a/hwe/js/defaultSelectCityByMap.js b/hwe/js/defaultSelectCityByMap.js index 54570f64..9b72b47a 100644 --- a/hwe/js/defaultSelectCityByMap.js +++ b/hwe/js/defaultSelectCityByMap.js @@ -1,17 +1,17 @@ -$(function(){ - var $target = $("#destCityID"); - reloadWorldMap({ - isDetailMap:false, - clickableAll:true, - neutralView:true, - useCachedMap:true, - selectCallback:function(city){ - var currVal = $target.val(); - $target.val(city.id); - if($target.val() === null){ - $target.val(currVal); - } - return false; - } - }); +$(function() { + var $target = $("#destCityID"); + reloadWorldMap({ + isDetailMap: false, + clickableAll: true, + neutralView: true, + useCachedMap: true, + selectCallback: function(city) { + var currVal = $target.val(); + $target.val(city.id).trigger("change"); + if ($target.val() === null) { + $target.val(currVal).trigger("change"); + } + return false; + } + }); }); \ No newline at end of file diff --git a/hwe/js/defaultSelectNationByMap.js b/hwe/js/defaultSelectNationByMap.js index 14e113e6..7e725304 100644 --- a/hwe/js/defaultSelectNationByMap.js +++ b/hwe/js/defaultSelectNationByMap.js @@ -1,17 +1,17 @@ -$(function(){ - var $target = $("#destNationID"); - reloadWorldMap({ - isDetailMap:false, - clickableAll:true, - neutralView:true, - useCachedMap:true, - selectCallback:function(city){ - var currVal = $target.val(); - $target.val(city.nationId); - if($target.val() === null){ - $target.val(currVal); - } - return false; - } - }); +$(function() { + var $target = $("#destNationID"); + reloadWorldMap({ + isDetailMap: false, + clickableAll: true, + neutralView: true, + useCachedMap: true, + selectCallback: function(city) { + var currVal = $target.val(); + $target.val(city.nationId).trigger("change"); + if ($target.val() === null) { + $target.val(currVal).trigger("change"); + } + return false; + } + }); }); \ No newline at end of file