This commit is contained in:
Stephan Richter
2021-01-04 08:42:35 +01:00
parent a74070ea80
commit 54a83d7280
3 changed files with 7 additions and 4 deletions

View File

@@ -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.5</version> <version>1.3.6</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>

View File

@@ -227,9 +227,9 @@ function runAction(ev){
window.open("https://api.qrserver.com/v1/create-qr-code/?data="+window.location.href,'_blank'); window.open("https://api.qrserver.com/v1/create-qr-code/?data="+window.location.href,'_blank');
} else if (clicked.id == 'fullscreen'){ } else if (clicked.id == 'fullscreen'){
toggleFullscreen(); toggleFullscreen();
} else { } else if (clicked.id == 'save'){
return request({action:ev.target.id,realm:realm}); // TODO: ask for name alert('save');
} } else return request({action:ev.target.id,realm:realm}); // TODO: ask for name
return false; return false;
} }

View File

@@ -499,6 +499,9 @@ public abstract class BaseClass implements Constants{
protected void removeChild(BaseClass child) {} protected void removeChild(BaseClass child) {}
protected static String t(String txt, Object...fills) { protected static String t(String txt, Object...fills) {
if (isSet(fills)) for (int i=0; i<fills.length; i++) {
if ("\\".equals(fills[i])) fills[i]="\\\\";
}
return Translation.get(Application.class, txt, fills); return Translation.get(Application.class, txt, fills);
} }