Roo/bootstrap/Calendar.js
authorAlan Knowles <alan@roojs.com>
Tue, 18 Feb 2014 05:57:20 +0000 (13:57 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 18 Feb 2014 05:57:20 +0000 (13:57 +0800)
Roo/bootstrap/Calendar.js

index bacadeb..d534631 100644 (file)
@@ -257,6 +257,29 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
         this.el.select('.fc-day-header',true).setWidth(sz.width / 7);
         this.el.select('.fc-day-content div',true).setHeight(34);
     },
+    
+    
+    // private
+    showPrevMonth : function(e){
+        this.update(this.activeDate.add("mo", -1));
+    },
+
+    // private
+    showNextMonth : function(e){
+        this.update(this.activeDate.add("mo", 1));
+    },
+
+    // private
+    showPrevYear : function(){
+        this.update(this.activeDate.add("y", -1));
+    },
+
+    // private
+    showNextYear : function(){
+        this.update(this.activeDate.add("y", 1));
+    },
+
+    
    // private
     update : function(date)
     {