case 39: // right
dir = e.keyCode == 37 ? -1 : 1;
- if(typeof(this.vIndex) == 'undefined'){
- this.vIndex = 0;
- }
-
this.vIndex = this.vIndex + dir;
if(this.vIndex < 0){
this.vIndex = 11;
}
+ Roo.log(this.vIndex);
+
this.setValue(Roo.bootstrap.MonthField.dates[this.language].months[this.vIndex]);
break;
if(this.vIndex > 11){
this.vIndex = 11;
}
-
+ Roo.log(this.vIndex);
this.setValue(Roo.bootstrap.MonthField.dates[this.language].months[this.vIndex]);
break;