projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f4cb02
)
Roo/bootstrap/MonthField.js
author
Edward
<edward@roojs.com>
Mon, 31 Aug 2015 06:04:39 +0000
(14:04 +0800)
committer
Edward
<edward@roojs.com>
Mon, 31 Aug 2015 06:04:39 +0000
(14:04 +0800)
Roo/bootstrap/MonthField.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/MonthField.js
b/Roo/bootstrap/MonthField.js
index
fa0dd68
..
6dd55bc
100644
(file)
--- a/
Roo/bootstrap/MonthField.js
+++ b/
Roo/bootstrap/MonthField.js
@@
-264,7
+264,7
@@
Roo.extend(Roo.bootstrap.MonthField, Roo.bootstrap.Input, {
dir = e.keyCode == 37 ? -1 : 1;
if(typeof(this.vIndex) == 'undefined'){
-
return
;
+
this.vIndex = 0
;
}
this.vIndex = this.vIndex + dir;
@@
-285,6
+285,10
@@
Roo.extend(Roo.bootstrap.MonthField, Roo.bootstrap.Input, {
dir = e.keyCode == 38 ? -1 : 1;
+ if(typeof(this.vIndex) == 'undefined'){
+ this.vIndex = 0;
+ }
+
this.vIndex = this.vIndex + dir * 4;
if(this.vIndex < 0){