diff --git a/content/fas.xul.php b/content/fas.xul.php
index 3b273cd54..d1d43f473 100644
--- a/content/fas.xul.php
+++ b/content/fas.xul.php
@@ -95,7 +95,7 @@ foreach($addon_obj->result as $addon)
-
+
diff --git a/content/fasoverlay.js.php b/content/fasoverlay.js.php
index 39571b32a..f7a30158f 100644
--- a/content/fasoverlay.js.php
+++ b/content/fasoverlay.js.php
@@ -2099,6 +2099,26 @@ function variableChangeValue(variable)
}
}
+// ****
+// * Aendert eines Variablenwert nach Überprüfung der Eingabe auf gültigen Wert (kleiner 100)
+// ****
+function variableChangeValueIfNumber(variable)
+{
+ var variablevalue = getvariable(variable);
+
+ if(variablevalue = prompt('Bitte geben Sie den neuen Wert fuer '+variable+' ein', variablevalue))
+ {
+ if ((typeof(parseInt(variablevalue)) === 'number' && variablevalue < 100 ))
+ {
+ variableChange(variable, '', variablevalue);
+ }
+ else
+ {
+ alert(variablevalue + ' ist keine gültige Eingabe! Bitte eine Zahl eingeben!');
+ }
+ }
+}
+
// ****
// * Sendet einen Request zum Aendern einer Variable
// ****