Roo/bootstrap/Calendar.js
authorEdward <edward@roojs.com>
Wed, 5 Mar 2014 10:56:01 +0000 (18:56 +0800)
committerEdward <edward@roojs.com>
Wed, 5 Mar 2014 10:56:01 +0000 (18:56 +0800)
Roo/bootstrap/Calendar.js

index 4f6929a..cb14d32 100644 (file)
@@ -454,10 +454,8 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
         var totalRows = Math.ceil((date.getDaysInMonth() + date.getFirstDateOfMonth().getDay()) / 7);
         Roo.log(this.el.select('tr.fc-week.fc-last',true));
         if(totalRows != 6){
-//            this.el.select('tr.fc-week.fc-last',true).hide();
-           
-            
-            this.el.select('tr.fc-week.fc-last',true).hide();
+            this.el.select('tr.fc-week.fc-prev-last',true).addClass('fc-last');
+            this.el.select('tr.fc-week.fc-last',true).removeClass('fc-last').hide();
         }