mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 22:42:16 +00:00
Merge branch 'bug-13098/FasVerbandDatentypPruefen'
This commit is contained in:
+1
-1
@@ -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();"/>
|
||||
|
||||
@@ -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
|
||||
// ****
|
||||
|
||||
Reference in New Issue
Block a user