Roo/bootstrap/Calendar.js
authorEdward <edward@roojs.com>
Thu, 25 Sep 2014 03:05:01 +0000 (11:05 +0800)
committerEdward <edward@roojs.com>
Thu, 25 Sep 2014 03:05:01 +0000 (11:05 +0800)
Roo/bootstrap/Calendar.js

index 9b750e1..b848d17 100644 (file)
@@ -616,7 +616,7 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
         var rows = [];
         for(var i =0; i < cells.length; i++) {
             Roo.log(cells[i].row);
-            cells[i].row = (typeof(cells[i].row)) ? 1 : (cells[i].row + 1);
+            cells[i].row = (typeof(cells[i].row) == 'undefined') ? 1 : (cells[i].row + 1);
             if (!crow) {
                 crow = {
                     start : cells[i],