[Kimchi-devel] [PATCH] [Wok] Allow wok.form.js to support number inputs

peterpnns at gmail.com peterpnns at gmail.com
Tue Jan 19 12:38:06 UTC 2016


From: peterpennings <peterpnsn at gmail.com>

Signed-off-by: peterpennings <peterpnns at gmail.com>
---
 ui/js/src/wok.form.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ui/js/src/wok.form.js b/ui/js/src/wok.form.js
index 49f9752..92c2c98 100644
--- a/ui/js/src/wok.form.js
+++ b/ui/js/src/wok.form.js
@@ -34,6 +34,7 @@
         $(this).find("input").each(function(){
             switch($(this).attr('type')) {
                 case 'text':
+                case 'number':
                     $(this).val(obj.getDeepValue($(this).attr("name")));
                     break;
                 case 'radio':
-- 
2.5.0




More information about the Kimchi-devel mailing list