projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e2a2b6
)
Roo/bootstrap/form/TimeField.js
author
leon
<leon@roojs.com>
Wed, 9 Aug 2023 06:41:41 +0000
(14:41 +0800)
committer
leon
<leon@roojs.com>
Wed, 9 Aug 2023 06:41:41 +0000
(14:41 +0800)
Roo/bootstrap/form/TimeField.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/form/TimeField.js
b/Roo/bootstrap/form/TimeField.js
index
c85e6e1
..
45a348f
100644
(file)
--- a/
Roo/bootstrap/form/TimeField.js
+++ b/
Roo/bootstrap/form/TimeField.js
@@
-98,7
+98,7
@@
Roo.extend(Roo.bootstrap.form.TimeField, Roo.bootstrap.form.Input, {
true
);
this.inputEl().dom.setAttribute('name', this.name + '____hidden___');
- this.hiddenField.value = this.time.dateFormat('
h:i
');
+ this.hiddenField.value = this.time.dateFormat('
H:i:s
');
},
@@
-426,6
+426,12
@@
Roo.extend(Roo.bootstrap.form.TimeField, Roo.bootstrap.form.Input, {
},
+ setValue: function(v)
+ {
+ this.value = this.hiddenField.value = '';
+ var v = this.time.format(this.format);
+ },
+
getValue: function()
{
return this.hiddenField.value;