]> git.nbdom.net Git - nb.git/commitdiff
edit
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 16 Jun 2016 15:52:48 +0000 (17:52 +0200)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 16 Jun 2016 15:52:48 +0000 (17:52 +0200)
lib/php/db/field.php

index 7e77621e342022cc3871e80bb2665a1719249829..a283b75df0bf6fce8b1f881cfca0584525da2e42 100644 (file)
@@ -51,7 +51,7 @@ class field extends nb {
   public function html_type() {
     # See: http://www.w3schools.com/html/html_form_input_types.asp
     if (strpos($this->name,'password') !== false) return 'password';
-    if ($this->numeric() !== false) return 'number';
+    if ($this->numeric() !== false) return 'number" step="any';
     return 'text';
     # Html5 only
     if (strpos($this->name,'email') !== false) return 'email'; # no safari