Roo/bootstrap/Calendar.js
authorAlan Knowles <alan@roojs.com>
Tue, 18 Feb 2014 06:11:51 +0000 (14:11 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 18 Feb 2014 06:11:51 +0000 (14:11 +0800)
Roo/bootstrap/Calendar.js

index 138c56f..387a412 100644 (file)
@@ -269,7 +269,7 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
         this.update(this.activeDate.add("mo", -1));
     },
     showToday : function(e){
-        this.update(new Date());
+        this.update(new Date().clearTime());
     },
     // private
     showNextMonth : function(e){
@@ -290,6 +290,7 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
    // private
     update : function(date)
     {
+        date = Date.
         var vd = this.activeDate;
         this.activeDate = date;
         if(vd && this.el){