minor improvements

This commit is contained in:
Stephan Richter
2021-09-20 20:37:26 +02:00
parent 57fb15e1c1
commit 710915f3ba
6 changed files with 15 additions and 6 deletions

View File

@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.srsoftware</groupId>
<artifactId>web4rail</artifactId>
<version>1.5.23</version>
<version>1.5.24</version>
<name>Web4Rail</name>
<packaging>jar</packaging>
<description>Java Model Railway Control</description>

View File

@@ -16,6 +16,7 @@ var messageOpacity = 0;
var pendingAssignment = null;
var clickHistory = [];
var messages = [];
var android = false;
function addClass(data){
parts = data.split(" ");
@@ -82,7 +83,7 @@ function clickLegend(ev){
$(ev.target).addClass('front');
$('.window > fieldset').hide();
$('#'+lastTab).show();
$('#'+lastTab+" input:not([type=hidden])").first().focus().select();
if (!android) $('#'+lastTab+" input:not([type=hidden])").first().focus().select();
if (!('no-update' in ev)) remember(lastTab);
}
@@ -361,7 +362,7 @@ function updateMessages() {
}
window.onload = function () {
var isDragging = false;
android = navigator.userAgent.toLowerCase().includes('android')
$('.menu > div').click(closeMenu);
$('.menu .addtile .list svg').click(enableAdding);
$('.menu .move .list div').click(enableMove);

View File

@@ -49,6 +49,7 @@ AlterDirection : Fahrtrichtung ändern
AndCondition : Und-Bedingung
Application will load "{}" on next launch and will now quit! : Anwendung wird beim nächsten Start „{}“ laden und wird jetzt beendet.
Apply : Übernehmen
Are you sure you want to delete {}? : Sind Sie sicher, dass Sie {} löschen möchten?
Aspect : Signalbild
Aspects : Signalbilder
Auto pilot : Autopilot
@@ -144,6 +145,7 @@ DetermineCarAtPosition : Fahrzeug im Zug bestimmen
DetermineTrainInBlock : Zug im Block bestimmen
Determine, which car is at position {} of the current train : Bestimmen, welches Fahrzeug sich an Position {} des Zuges befindet
Determine, which train is in {} : Bestimmen, welcher Zug sich in {} befindet
Determine, which train is parked in {} : Bestimmen, welcher Zug in {} abgestellt ist
Direction : Richtung
Direction\: heading {} : Richtung: nach {}
directional : fahrtrichtungs-abhängig
@@ -237,6 +239,7 @@ Locomotives and cars : Lokomotiven und Waggons
lookup tables : Wertetabellen
Lookup table : Wertetabelle
LookupTable : Wertetabelle
LookupValue : Wert aus Tabelle laden
Loop : Wiederholung
Lower speed limit : Minimale Geschwindigkeit
Maintenance : Wartung
@@ -378,6 +381,7 @@ SetPower : Strom schalten
Set speed to : Geschwindigkeit setzen
SetTurnout : Weiche stellen
Setup actions : Vorbereitung-Aktionen
show : zeigen
ShowText : Text anzeigen
Shunting : Rangieren
shunting destination : Rangier-Ziel

View File

@@ -294,7 +294,10 @@ public class LookupTable extends BaseClass{
Vector<Object> head = new Vector<Object>();
head.add("");
if (LENGTH.equals(colType)) {
for (Object col : cols) head.add("&lt; "+col);
for (Object col : cols) {
if ("".equals(col)) continue;
head.add("&lt; "+col);
}
} else head.addAll(cols);
table.addHead(head.toArray());

View File

@@ -76,7 +76,8 @@ public class DetermineTrainInBlock extends Action {
}
public String toString() {
return isSet(block) ? t("Determine, which train is in {}",block) : "["+t("Click here to select block!")+"]";
if (isSet(block)) return parked ? t("Determine, which train is parked in {}",block) : t("Determine, which train is in {}",block);
return "["+t("Click here to select block!")+"]";
};
@Override

View File

@@ -89,6 +89,6 @@ public class DisableEnableTile extends Action {
if (newTile instanceof Shadow) newTile = ((Shadow)newTile).overlay();
if (isSet(newTile)) tile = newTile;
disable = !"enable".equals(params.get(STATE));
return properties();
return parent().properties();
}
}