summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/mapspecs.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/mapspecs.js b/js/mapspecs.js
index 5cc482e..b8213e5 100644
--- a/js/mapspecs.js
+++ b/js/mapspecs.js
@@ -874,7 +874,10 @@ function mapAsHTML(map, targetWidth, mapEditor) {
//var idHandle = map.ID+','+x+','+y;
//oldy is used for Position too... for now
- if (type == 'o' || mapEditor == true) {
+ if (mapEditor == true) {
+ mapgrid += "<div style='float:left; width:"+tileWidth+"px; height:"+tileWidth+"px; ' class='mapcell "+type+value+"' title='Position: "+x+","+oldy+"' id='"+idHandle+"' onMouseOver='mapEditOver(this)' onMouseDown='mapEditClick(this)' >";
+ mapgrid += "<div id='child_"+idHandle+"' class='child'></div></div>";
+ } else if (type == 'o') {
mapgrid += "<div style='float:left; width:"+tileWidth+"px; height:"+tileWidth+"px; ' class='mapcell "+type+value+"' title='Position: "+x+","+oldy+"' id='"+idHandle+"' onClick='grid_click(this)' >";
mapgrid += "<div id='child_"+idHandle+"' class='child'></div></div>";
} else {