Roo/bootstrap/form/TimeField.js
authorleon <leon@roojs.com>
Wed, 9 Aug 2023 06:37:04 +0000 (14:37 +0800)
committerleon <leon@roojs.com>
Wed, 9 Aug 2023 06:37:04 +0000 (14:37 +0800)
Roo/bootstrap/form/TimeField.js

index 3dbb75c..f2488b6 100644 (file)
@@ -92,6 +92,14 @@ Roo.extend(Roo.bootstrap.form.TimeField, Roo.bootstrap.form.Input,  {
         this.pop.select('button.ok', true).first().on('click', this.setTime, this);
         this.pop.select('button.ok', true).first().dom.innerHTML = Roo.bootstrap.form.TimeField.okText;
 
+        this.hiddenField = this.inputEl().insertSibling(
+            {tag : 'input', type : 'hidden', name : this.name},
+            'before',
+            true
+        );
+        this.inputEl().dom.setAttribute('name', this.name + '____hidden___');
+        this.hiddenField.value = this.date.dateFormat('h:i');
+
     },
     
     fireKey: function(e){