diff --git a/twe/js/map.js b/twe/js/map.js index 9fda0ab5..d87b77f2 100644 --- a/twe/js/map.js +++ b/twe/js/map.js @@ -9,6 +9,11 @@ String.prototype.format = function() { function reloadWorldMap(option){ + var $world_map = $('.world_map'); + + if($world_map.length == 0){ + return; + } var defaultOption = { isDetailMap:true, //복잡 지도, 단순 지도 @@ -35,7 +40,7 @@ function reloadWorldMap(option){ var cityPosition = getCityPosition(); //OBJ : startYear, year, month, cityList, nationList, spyList, shownByGeneralList, myCity - var $world_map = $('.world_map'); + var deferred; diff --git a/twe/processing.php b/twe/processing.php index bfdb24ff..fc495974 100644 --- a/twe/processing.php +++ b/twe/processing.php @@ -107,23 +107,47 @@ switch($commandtype) { } function starter($name, $type=0) { + //FIXME: 장기적으로 template로 변경해야함. global $_basecolor2, $_basecolor4; global $images; - echo " + echo ' +
-| $name |
| '.$name.' |
|
-";
+';
if($type == 1) CoreBackButton();
else backButton();
}
@@ -1120,9 +1144,8 @@ function command_16($connect, $turn, $command) {
$result = MYDB_query($query, $connect) or Error("aaa_processing.php ".MYDB_error($connect),"");
$currentcity = MYDB_fetch_array($result);
- echo "
- + echo getMapHtml(); + echo " 선택된 도시로 침공을 합니다. 목록을 선택하거나 도시를 클릭하세요. |