From: Edward Date: Thu, 25 Sep 2014 02:29:09 +0000 (+0800) Subject: Roo/bootstrap/Calendar.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=5d227d8409dcdb923f7cfe4381a786c1336e0cbb;p=roojs1 Roo/bootstrap/Calendar.js --- diff --git a/Roo/bootstrap/Calendar.js b/Roo/bootstrap/Calendar.js index ed6af0a231..758042e57f 100644 --- a/Roo/bootstrap/Calendar.js +++ b/Roo/bootstrap/Calendar.js @@ -604,20 +604,15 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component, { findStartCell : function(ev) { var s = ev.start.clone().clearTime().getTime(); - // Roo.log(s); - var e= ev.end.clone().clearTime().getTime(); - // Roo.log(e); - var ret = []; + + var ret = false; this.cells.each(function(c){ ////Roo.log("check " +c.dateValue + '<' + e + ' > ' + s); - if(c.dateValue > e){ - return ; - } - if(c.dateValue < s){ + if(c.dateValue != s){ return ; } - ret.push(c); + ret = c; }); return ret;