backported bugfixes from state-machine branch
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -4,7 +4,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>de.srsoftware</groupId>
|
||||
<artifactId>web4rail</artifactId>
|
||||
<version>1.3.49</version>
|
||||
<version>1.3.50</version>
|
||||
<name>Web4Rail</name>
|
||||
<packaging>jar</packaging>
|
||||
<description>Java Model Railway Control</description>
|
||||
|
||||
@@ -180,6 +180,7 @@ function keypress(ev){
|
||||
if (ev.code === 'Enter') {
|
||||
elem = ev.target;
|
||||
while (elem != undefined && elem != null){
|
||||
if (elem.nodeName == 'TEXTAREA') return false;
|
||||
if (elem.nodeName == 'FORM') return submitForm(elem.getAttribute('id'));
|
||||
elem = elem.parentNode;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
||||
import de.srsoftware.tools.Tag;
|
||||
import de.srsoftware.web4rail.Route;
|
||||
import de.srsoftware.web4rail.moving.Train;
|
||||
|
||||
public class BlockContact extends Contact {
|
||||
|
||||
@@ -37,6 +37,12 @@ public class BlockContact extends Contact {
|
||||
return ((Block)parent()).tag(replacements);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Train train() {
|
||||
train = ((Block)parent()).train();
|
||||
return train;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return id().toString()+" ("+addr+")";
|
||||
|
||||
Reference in New Issue
Block a user