지도 기반 선택 버그 수정
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user