bugfix
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -4,7 +4,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>de.srsoftware</groupId>
|
<groupId>de.srsoftware</groupId>
|
||||||
<artifactId>web4rail</artifactId>
|
<artifactId>web4rail</artifactId>
|
||||||
<version>1.3.12</version>
|
<version>1.3.13</version>
|
||||||
<name>Web4Rail</name>
|
<name>Web4Rail</name>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<description>Java Model Railway Control</description>
|
<description>Java Model Railway Control</description>
|
||||||
|
|||||||
@@ -165,7 +165,10 @@ function moveTile(x,y){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function place(data){
|
function place(data){
|
||||||
$('#'+$(data).attr('id')).replaceWith(data);
|
var elem = $('#'+$(data).attr('id'));
|
||||||
|
if (elem.length) {
|
||||||
|
elem.replaceWith(data);
|
||||||
|
} else $('#scroll').append(data);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user