projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78a45fb
)
Roo/bootstrap/DateField.js
author
edward
<edward@roojs.com>
Tue, 8 Aug 2017 10:50:56 +0000
(18:50 +0800)
committer
edward
<edward@roojs.com>
Tue, 8 Aug 2017 10:50:56 +0000
(18:50 +0800)
Roo/bootstrap/DateField.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/DateField.js
b/Roo/bootstrap/DateField.js
index
36e6e01
..
9429015
100644
(file)
--- a/
Roo/bootstrap/DateField.js
+++ b/
Roo/bootstrap/DateField.js
@@
-926,7
+926,18
@@
Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input, {
remove: function()
{
this.picker().remove();
- }
+ },
+
+ validate : function()
+ {
+ if(this.disabled || this.validateValue(this.getRawValue())){
+ this.markValid();
+ return true;
+ }
+
+ this.markInvalid();
+ return false;
+ },
});