Refactor switch statement

This commit is contained in:
Oliver 2021-06-29 09:28:00 +10:00
parent 0037056ee8
commit 374344d0e2

View File

@ -913,20 +913,12 @@ function constructInput(name, parameters, options) {
func = constructCheckboxInput;
break;
case 'string':
func = constructTextInput;
break;
case 'url':
func = constructTextInput;
break;
case 'email':
func = constructTextInput;
break;
case 'integer':
func = constructNumberInput;
break;
case 'float':
func = constructNumberInput;
break;
case 'decimal':
func = constructNumberInput;
break;