Roo/bootstrap/Calendar.js
authorEdward <edward@roojs.com>
Wed, 3 Sep 2014 08:37:08 +0000 (16:37 +0800)
committerEdward <edward@roojs.com>
Wed, 3 Sep 2014 08:37:08 +0000 (16:37 +0800)
Roo/bootstrap/Calendar.js

index 2179885..d566883 100644 (file)
@@ -719,12 +719,14 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
                     ]
                 };
                 
+                var more = this.cells.item(this.cells.indexOf(cells[0])).more;
+                
+                if(more.length){
+                    return;
+                }
+                
                 if(ev.row > 3){
-//                    cfg.cn[0].cn[0].html = 'More';
-//                    Roo.log('cells!!!');
-//                    Roo.log(cells);
-//                    Roo.log(this.cells.item(this.cells.indexOf(cells[0])));
-
+                    cfg.cn[0].cn[0].html = 'More';
                     this.cells.item(this.cells.indexOf(cells[0])).more.push(ev);
                 }