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

index 8d6026a..316dfbb 100644 (file)
@@ -421,7 +421,9 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input,  {
         
         year = parseInt(year/10, 10) * 10;
         
-        this.picker().select('>.datepicker-years th.switch', true).first().dom.innerHTML = year + '-' + (year + 9);
+        if(!this.singleMode){
+            this.picker().select('>.datepicker-years th.switch', true).first().dom.innerHTML = year + '-' + (year + 9);
+        }
         
         this.picker().select('>.datepicker-years tbody td',true).first().dom.innerHTML = '';