Merge branch 'bug-13098/FasVerbandDatentypPruefen'

This commit is contained in:
Andreas Österreicher
2021-06-14 13:24:00 +02:00
2 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ foreach($addon_obj->result as $addon)
<command id="menu-prefs-stpltable-stundenplan:command" oncommand="stpltableChange('stundenplan');"/>
<command id="menu-prefs-stpltable-stundenplandev:command" oncommand="stpltableChange('stundenplandev');"/>
<command id="menu-prefs-kontofilterstg:command" oncommand="EinstellungenKontoFilterStgChange();"/>
<command id="menu-prefs-number_displayed_past_studiensemester:command" oncommand="variableChangeValue('number_displayed_past_studiensemester');"/>
<command id="menu-prefs-number_displayed_past_studiensemester:command" oncommand="variableChangeValueIfNumber('number_displayed_past_studiensemester');"/>
<command id="menu-statistic-lehrauftraege:command" oncommand="StatistikPrintLehrauftraege();"/>
<command id="menu-statistic-lvplanung:command" oncommand="StatistikPrintLVPlanung();"/>
<command id="menu-statistic-lvplanungexcel:command" oncommand="StatistikPrintLVPlanungExcel();"/>
+20
View File
@@ -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
// ****