Roo/bootstrap/DateField.js
authorEdward <edward@roojs.com>
Thu, 23 Apr 2015 05:26:47 +0000 (13:26 +0800)
committerEdward <edward@roojs.com>
Thu, 23 Apr 2015 05:26:47 +0000 (13:26 +0800)
Roo/bootstrap/DateField.js

index eb1276b..8d6026a 100644 (file)
@@ -401,7 +401,9 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input,  {
         var currentYear = this.date && this.date.getUTCFullYear();
         var currentMonth = this.date && this.date.getUTCMonth();
         
-        this.picker().select('>.datepicker-months th.switch',true).first().dom.innerHTML = year;
+        if(!this.singleMode){
+            this.picker().select('>.datepicker-months th.switch',true).first().dom.innerHTML = year;
+        }
         
         Roo.each(this.picker().select('>.datepicker-months tbody span',true).elements, function(v,k){
             v.removeClass('active');