지도 기반 선택 버그 수정

This commit is contained in:
2020-06-05 01:14:49 +09:00
parent 00b57b2ff9
commit bd428fa352
2 changed files with 32 additions and 32 deletions
+16 -16
View File
@@ -1,17 +1,17 @@
$(function(){ $(function() {
var $target = $("#destCityID"); var $target = $("#destCityID");
reloadWorldMap({ reloadWorldMap({
isDetailMap:false, isDetailMap: false,
clickableAll:true, clickableAll: true,
neutralView:true, neutralView: true,
useCachedMap:true, useCachedMap: true,
selectCallback:function(city){ selectCallback: function(city) {
var currVal = $target.val(); var currVal = $target.val();
$target.val(city.id); $target.val(city.id).trigger("change");
if($target.val() === null){ if ($target.val() === null) {
$target.val(currVal); $target.val(currVal).trigger("change");
} }
return false; return false;
} }
}); });
}); });
+16 -16
View File
@@ -1,17 +1,17 @@
$(function(){ $(function() {
var $target = $("#destNationID"); var $target = $("#destNationID");
reloadWorldMap({ reloadWorldMap({
isDetailMap:false, isDetailMap: false,
clickableAll:true, clickableAll: true,
neutralView:true, neutralView: true,
useCachedMap:true, useCachedMap: true,
selectCallback:function(city){ selectCallback: function(city) {
var currVal = $target.val(); var currVal = $target.val();
$target.val(city.nationId); $target.val(city.nationId).trigger("change");
if($target.val() === null){ if ($target.val() === null) {
$target.val(currVal); $target.val(currVal).trigger("change");
} }
return false; return false;
} }
}); });
}); });