projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3c22526
)
Roo/form/MonthField.js
author
Alan Knowles
<alan@roojs.com>
Mon, 22 Oct 2012 09:22:08 +0000
(17:22 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 22 Oct 2012 09:22:08 +0000
(17:22 +0800)
Roo/form/MonthField.js
patch
|
blob
|
history
diff --git
a/Roo/form/MonthField.js
b/Roo/form/MonthField.js
index
11584b3
..
0962d30
100644
(file)
--- a/
Roo/form/MonthField.js
+++ b/
Roo/form/MonthField.js
@@
-168,7
+168,7
@@
Roo.extend(Roo.form.MonthField, Roo.form.TriggerField, {
validateValue : function(value)
{
value = this.formatDate(value);
validateValue : function(value)
{
value = this.formatDate(value);
- if(!Roo.form.
Date
Field.superclass.validateValue.call(this, value)){
+ if(!Roo.form.
Month
Field.superclass.validateValue.call(this, value)){
return false;
}
if(value.length < 1){ // if it's blank and textfield didn't flag it then it's valid
return false;
}
if(value.length < 1){ // if it's blank and textfield didn't flag it then it's valid
@@
-224,12
+224,12
@@
Roo.extend(Roo.form.MonthField, Roo.form.TriggerField, {
return this.hiddenField ?
this.hiddenField.value :
return this.hiddenField ?
this.hiddenField.value :
- this.parseDate(Roo.form.
Date
Field.superclass.getValue.call(this)) || "";
+ this.parseDate(Roo.form.
Month
Field.superclass.getValue.call(this)) || "";
},
/**
* Sets the value of the date field. You can pass a date object or any string that can be parsed into a valid
},
/**
* Sets the value of the date field. You can pass a date object or any string that can be parsed into a valid
- * date, using
m
onthField.format as the date format, according to the same rules as {@link Date#parseDate}
+ * date, using
M
onthField.format as the date format, according to the same rules as {@link Date#parseDate}
* (the default format used is "m/d/y").
* <br />Usage:
* <pre><code>
* (the default format used is "m/d/y").
* <br />Usage:
* <pre><code>
@@
-253,7
+253,7
@@
monthField.setValue('2006-5-4');
if (this.hiddenField) {
this.hiddenField.value = this.formatDate(this.parseDate(date), 'Y-m-d');
}
if (this.hiddenField) {
this.hiddenField.value = this.formatDate(this.parseDate(date), 'Y-m-d');
}
- Roo.form.
Date
Field.superclass.setValue.call(this, this.formatDate(this.parseDate(date)));
+ Roo.form.
Month
Field.superclass.setValue.call(this, this.formatDate(this.parseDate(date)));
},
// private
},
// private