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

index b6ac4e9..4ae9d92 100644 (file)
@@ -268,7 +268,9 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
     showPrevMonth : function(e){
         this.update(this.activeDate.add("mo", -1));
     },
-
+    showToday : function(e){
+        this.update(new Date());
+    },
     // private
     showNextMonth : function(e){
         this.update(this.activeDate.add("mo", 1));