projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3825f1e
)
Roo/bootstrap/MonthField.js
author
Edward
<edward@roojs.com>
Mon, 31 Aug 2015 05:55:18 +0000
(13:55 +0800)
committer
Edward
<edward@roojs.com>
Mon, 31 Aug 2015 05:55:18 +0000
(13:55 +0800)
Roo/bootstrap/MonthField.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/MonthField.js
b/Roo/bootstrap/MonthField.js
index
200a3a4
..
02d3ccf
100644
(file)
--- a/
Roo/bootstrap/MonthField.js
+++ b/
Roo/bootstrap/MonthField.js
@@
-264,9
+264,15
@@
Roo.extend(Roo.bootstrap.MonthField, Roo.bootstrap.Input, {
case 39: // right
dir = e.keyCode == 37 ? -1 : 1;
- d = new Date();
- year = d.getFullYear();
- day = 1;
+ this.vIndex = this.vIndex + dir;
+
+ if(this.vIndex < 0){
+ this.vIndex = 0;
+ }
+
+ if(this.vIndex > 11){
+ this.vIndex = 11;
+ }
Roo.log(year);
Roo.log(day);