diff --git a/pom.xml b/pom.xml
index c10ea83..bb93f28 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
de.srsoftware
web4rail
- 0.5.5
+ 0.5.6
Web4Rail
jar
Java Model Railway Control
@@ -90,7 +90,6 @@
-
diff --git a/resources/css/style.css b/resources/css/style.css
index 236acb7..b48d714 100644
--- a/resources/css/style.css
+++ b/resources/css/style.css
@@ -117,6 +117,7 @@ svg circle{
padding: 5px;
border-radius: 5px;
background: yellow;
+ z-index: 100;
}
.window{
diff --git a/resources/js/plan.js b/resources/js/plan.js
index b368254..7804ec7 100644
--- a/resources/js/plan.js
+++ b/resources/js/plan.js
@@ -16,7 +16,7 @@ function addClass(data){
}
function addMessage(txt){
- $('#messages').html(txt).show().delay(5000).fadeOut(5000);
+ $('#messages').html(txt).show().delay(2000).fadeOut(1);
}
function addTile(x,y){
@@ -90,6 +90,10 @@ function heartbeat(data){
return false;
}
+function keypress(ev){
+ if (ev.key === "Escape") request({realm:"cu",action:"emergency"})
+}
+
function moveTile(x,y){
var id = x+"-"+y;
return request({action:mode,direction:selected.id,id:id});
@@ -135,7 +139,7 @@ function request(data){
method : POST,
data : data,
success: function(resp){
- closeWindows();
+ if (data.realm != 'car') closeWindows();
if (resp.startsWith('