summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-03-07 02:36:38 -0800
committerPatrick Davison <snapwilliam@gmail.com>2013-03-07 02:36:38 -0800
commit05b82c3bfa0593ae5234844796ea3dbea929833e (patch)
tree6a5e9e0cbbf3639ebd501aaa2d3c34e3203cd65e /js
parent7d1ea2721d51aad05ffc1a01b510d86e9864f92a (diff)
downloadpathery-05b82c3bfa0593ae5234844796ea3dbea929833e.tar.xz
Whoops.
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 {