From b3f8ed2335350d454c7a3fe7729a0135b2d0c685 Mon Sep 17 00:00:00 2001 From: hide_d Date: Fri, 5 Jun 2020 01:14:49 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A7=80=EB=8F=84=20=EA=B8=B0=EB=B0=98=20?= =?UTF-8?q?=EC=84=A0=ED=83=9D=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/js/defaultSelectCityByMap.js | 32 +++++++++++++++--------------- hwe/js/defaultSelectNationByMap.js | 32 +++++++++++++++--------------- 2 files changed, 32 insertions(+), 32 deletions(-) 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