From 3ef894e86ca8cb48ec01bc9417f290cc43b1d703 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 25 Dec 2012 16:53:46 +0100 Subject: [PATCH] Adds support for min/max value for integer option type The validation of the min/max value happens in the PHP class but can also be directly done in the browser because of the min and max properties of the input element. --- com.woltlab.wcf/option.xml | 9 ++++-- .../template/integerOptionType.tpl | 1 + .../files/acp/templates/integerOptionType.tpl | 1 + .../files/lib/data/option/Option.class.php | 16 ++++++++++ .../system/option/IntegerOptionType.class.php | 31 +++++++++++++++++-- 5 files changed, 53 insertions(+), 5 deletions(-) create mode 100644 com.woltlab.wcf/template/integerOptionType.tpl create mode 100644 wcfsetup/install/files/acp/templates/integerOptionType.tpl diff --git a/com.woltlab.wcf/option.xml b/com.woltlab.wcf/option.xml index 90ba1783aa..6038d55e88 100644 --- a/com.woltlab.wcf/option.xml +++ b/com.woltlab.wcf/option.xml @@ -119,7 +119,7 @@ boolean 0 - + @@ -257,12 +259,13 @@ imagick:wcf.acp.option.image_adapter_type.imagick]]> security.general.session integer 1800 - ^[^0] + 1