Changeset 5817

Show
Ignore:
Timestamp:
06/30/08 08:46:06 (2 months ago)
Author:
uta
Message:

2008/06/30 sync

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • rubricks_core/trunk/preload/_lib_extension.rhtml

    r5788 r5817  
    4141    Ajax.Base.prototype.setOptions = setOptionsForFailure; 
    4242  })(); 
     43 
     44  Ajax.Responders.register({ 
     45    onComplete: function() { 
     46      if (!Modal.existTarget() && Modal.isMasked()) Modal.unmask(); 
     47    } 
     48  }); 
    4349 
    4450  /* Event(prototype.js) extension */ 
     
    144150    } 
    145151  }); 
     152 
     153  /* for MAC-Fx3 BUG */ 
     154  Object.extend(SpinelzUtil, { 
     155    blur: function() { 
     156      if(UserAgent.isIE()) { 
     157        window.focus(); 
     158      } else if(UserAgent.isFF3()) { 
     159        if(rubricks.common.ignore_blur && UserAgent.isMac()) { 
     160        } else { 
     161          this._dummyElement.focus(); 
     162          this._dummyElement.blur(); 
     163        } 
     164      } else { 
     165        document.body.blur(); 
     166      } 
     167    } 
     168  }); 
    146169</script> 
  • rubricks_core/trunk/public/javascripts/components/system/src_system_calendar.js

    r5781 r5817  
    6262  }, 
    6363  renderList: function() { 
    64     var withoutCallbackTmpl = new Template("<tr><td>#{icon_for_list}</td><td>#{icon}#{description}</td><td>#{start}</td><td>#{finish}</td></tr>"); 
    65     var callbackTmpl = new Template("<tr><td>#{icon_for_list}</td><td>#{icon}<a href=\"javascript:void(0)\" onclick=\"(function() { #{callback}; })()\">#{description}</a></td><td>#{start}</td><td>#{finish}</td></tr>"); 
     64    var withoutCallbackTmpl = new Template("<tr><td>#{icon_for_list}</td><td><div style=\"overflow: hidden;\" title=\"#{description}\">#{icon}#{description}</div></td><td>#{start}</td><td>#{finish}</td></tr>"); 
     65    var callbackTmpl = new Template("<tr><td>#{icon_for_list}</td><td><div style=\"overflow: hidden; white-space: nowrap; width: 100%;\" title=\"#{description}\">#{icon}<a href=\"javascript:void(0)\" onclick=\"(function() { #{callback}; })()\">#{description}</a></div></td><td>#{start}</td><td>#{finish}</td></tr>"); 
    6666    var tmpl = null; 
    6767    var rows = []; 
  • rubricks_core/trunk/public/javascripts/components/system/system.js

    r5781 r5817  
    924924this.changeCalendar(this.date,_8); 
    925925},renderList:function(){ 
    926 var _a=new Template("<tr><td>#{icon_for_list}</td><td>#{icon}#{description}</td><td>#{start}</td><td>#{finish}</td></tr>"); 
    927 var _b=new Template("<tr><td>#{icon_for_list}</td><td>#{icon}<a href=\"javascript:void(0)\" onclick=\"(function() { #{callback}; })()\">#{description}</a></td><td>#{start}</td><td>#{finish}</td></tr>"); 
     926var _a=new Template("<tr><td>#{icon_for_list}</td><td><div style=\"overflow: hidden;\" title=\"#{description}\">#{icon}#{description}</div></td><td>#{start}</td><td>#{finish}</td></tr>"); 
     927var _b=new Template("<tr><td>#{icon_for_list}</td><td><div style=\"overflow: hidden; white-space: nowrap; width: 100%;\" title=\"#{description}\">#{icon}<a href=\"javascript:void(0)\" onclick=\"(function() { #{callback}; })()\">#{description}</a></div></td><td>#{start}</td><td>#{finish}</td></tr>"); 
    928928var _c=null; 
    929929var _d=[]; 
  • rubricks_core/trunk/public/javascripts/rubricks_common.js

    r5781 r5817  
    496496} 
    497497}); 
     498 
     499Object.extend(rubricks.common,{ignore_blur_counter_for_select:0,restore_ignore_blur_for_select:function(e){ 
     500rubricks.common.ignore_blur_counter_for_select--; 
     501if(rubricks.common.ignore_blur_counter_for_select<1){ 
     502rubricks.common.ignore_blur=false; 
     503rubricks.common.ignore_blur_counter_for_select=0; 
     504} 
     505},ignore_blur_listener_for_select:function(e){ 
     506rubricks.common.ignore_blur=true; 
     507setTimeout(rubricks.common.restore_ignore_blur_for_select,1000); 
     508rubricks.common.restore_ignore_blur_stack++; 
     509},attach_ignore_blur_listener_for_select:function(_3){ 
     510if(_3.ignore_blur_listener_attached){ 
     511return; 
     512} 
     513Event.observe(_3,"click",rubricks.common.ignore_blur_listener_for_select,true); 
     514_3.ignore_blur_listener_for_select=true; 
     515},attach_ignore_blur_to_select:function(_4){ 
     516if(!UserAgent.isMac()||!UserAgent.isFF3()){ 
     517return; 
     518} 
     519_4=$(_4); 
     520if(!_4){ 
     521return; 
     522} 
     523if("select"==_4.tagName.toLowerCase()){ 
     524rubricks.common.attach_ignore_blur_listener_for_select(_4); 
     525}else{ 
     526var _5=_4.getElementsByTagName("select"); 
     527for(var i=0,_7=_5.length;i<_7;i++){ 
     528rubricks.common.attach_ignore_blur_listener_for_select(_5[i]); 
     529} 
     530} 
     531}}); 
    498532 
    499533Object.extend(rubricks.common,{change_image:function(_1,_2){ 
  • rubricks_core/trunk/public/javascripts/spinelz/calendar.js

    r5788 r5817  
    11var Calendar=Class.create(); 
    2 Calendar.className={container:"calendar",header:"calendar_header",preYears:"calendar_preYears",nextYears:"calendar_nextYears",years:"calendar_years",mark:"calendar_mark",ym:"calendar_ym",table:"calendar_table",thRight:"right",tdRight:"right",tdBottom:"bottom",date:"calendar_date",holiday:"calendar_holiday",regularHoliday:"calendar_regularHoliday",schedule:"calendar_schedule",highlightDay:"calendar_highlightDay",highlightTime:"calendar_highlightTime",scheduleListContainer:"calendar_scheduleListContainer",scheduleItem:"calendar_scheduleItem",scheduleTimeArea:"calendar_scheduleItemTimeArea",scheduleHandler:"calendar_scheduleHandler",holidayName:"calendar_holidayName",dateContainer:"calendar_dateContainer",tableHeader:"calendar_tableHeader",rowContent:"calendar_rowContent",selected:"calendar_selected",nextYearMark:"calendar_nextYearMark",nextMonthMark:"calendar_nextMonthMark",nextWeekMark:"calendar_nextWeekMark",preYearMark:"calendar_preYearMark",preMonthMark:"calendar_preMonthMark",preWeekMark:"calendar_preWeekMark",weekTable:"calendar_weekContainerTable",weekMainTable:"calendar_weekMainTable",timeLine:"calendar_timeline",timeLineTimeTop:"calendar_timelineTimeTop",timeLineTime:"calendar_timelineTime",headerColumn:"calendar_headerColumn",columnTopDate:"calendar_columnTopDate",columnDate:"calendar_columnDate",columnDateOdd:"calendar_columnOddDate",scheduleItemSamll:"calendar_scheduleItemSmall",scheduleItemLarge:"calendar_scheduleItemLarge",scheduleItemNoBorder:"calendar_scheduleItemNoBorder",scheduleItemSelect:"calendar_scheduleItemSelect",skipNode:"calendar_skipNode",deleteImg:"calendar_deleteImage",copyImg:"calendar_copyImage",privateImg:"calendar_privateImage",scheduleContainer:"calendar_weekScheduleContainer",selector:"calendar_selector",cover:"calendar_cover"}; 
     2Calendar.className={container:"calendar",header:"calendar_header",preYears:"calendar_preYears",nextYears:"calendar_nextYears",years:"calendar_years",mark:"calendar_mark",ym:"calendar_ym",table:"calendar_table",thRight:"right",tdRight:"right",tdBottom:"bottom",date:"calendar_date",holiday:"calendar_holiday",regularHoliday:"calendar_regularHoliday",schedule:"calendar_schedule",highlightDay:"calendar_highlightDay",highlightTime:"calendar_highlightTime",scheduleListContainer:"calendar_scheduleListContainer",scheduleItem:"calendar_scheduleItem",scheduleTimeArea:"calendar_scheduleItemTimeArea",scheduleTimeAreaMonth:"calendar_scheduleItemTimeAreaMonth",scheduleHandler:"calendar_scheduleHandler",holidayName:"calendar_holidayName",dateContainer:"calendar_dateContainer",tableHeader:"calendar_tableHeader",rowContent:"calendar_rowContent",selected:"calendar_selected",nextYearMark:"calendar_nextYearMark",nextMonthMark:"calendar_nextMonthMark",nextWeekMark:"calendar_nextWeekMark",preYearMark:"calendar_preYearMark",preMonthMark:"calendar_preMonthMark",preWeekMark:"calendar_preWeekMark",weekTable:"calendar_weekContainerTable",weekMainTable:"calendar_weekMainTable",timeLine:"calendar_timeline",timeLineTimeTop:"calendar_timelineTimeTop",timeLineTime:"calendar_timelineTime",headerColumn:"calendar_headerColumn",columnTopDate:"calendar_columnTopDate",columnDate:"calendar_columnDate",columnDateOdd:"calendar_columnOddDate",scheduleItemSamll:"calendar_scheduleItemSmall",scheduleItemLarge:"calendar_scheduleItemLarge",scheduleItemNoBorder:"calendar_scheduleItemNoBorder",scheduleItemSelect:"calendar_scheduleItemSelect",skipNode:"calendar_skipNode",deleteImg:"calendar_deleteImage",copyImg:"calendar_copyImage",privateImg:"calendar_privateImage",scheduleContainer:"calendar_weekScheduleContainer",selector:"calendar_selector",cover:"calendar_cover"}; 
    33Calendar.smallClassName={container:"calendar_small",header:"calendar_header_small",calendar:"calendar_calendar_small",table:"calendar_tableSmall"}; 
    44Calendar.size={large:"large",small:"small"}; 
    55Calendar.privateImgPath=null; 
     6Calendar.defaultIconPath=null; 
    67Calendar.prototype={initialize:function(_1){ 
    78this.building=true; 
     
    611612},clickCopyImage:function(_9f){ 
    612613this.calendar.options.copySchedule(_9f,true); 
    613 },showImage:function(ids){ 
    614 ids.each(function(id){ 
    615 Element.show(id); 
    616 }); 
    617 },hideImage:function(ids){ 
    618 ids.each(function(id){ 
    619 Element.hide(id); 
    620 }); 
    621 },_constrain:function(n,_a5,_a6){ 
    622 if(n>_a6){ 
    623 return _a6; 
    624 }else{ 
    625 if(n<_a5){ 
    626 return _a5; 
     614},showImage:function(_a0,_a1){ 
     615_a0.each(function(img){ 
     616Element.show(img); 
     617}); 
     618if(_a1){ 
     619Element.setStyle(_a1,{right:(17*_a0.length)+"px"}); 
     620
     621},hideImage:function(_a3,_a4){ 
     622_a3.each(function(img){ 
     623Element.hide(img); 
     624}); 
     625if(_a4){ 
     626Element.setStyle(_a4,{right:"0px"}); 
     627
     628},_constrain:function(n,_a7,_a8){ 
     629if(n>_a8){ 
     630return _a8; 
     631}else{ 
     632if(n<_a7){ 
     633return _a7; 
    627634}else{ 
    628635return n; 
     
    636643return this.calendar.element.id.appendSuffix(AbstractCalendar.id.scheduleContainer); 
    637644},setColumnWidth:function(){ 
    638 var _a7=this.getAdjustSize(); 
    639 var _a8=$(this.getScheduleContainerId())||this.container; 
    640 var _a9=this.calendar.options.displayIndexes; 
    641 this.column.width=_a8.offsetWidth/_a9.length-_a7
     645var _a9=this.getAdjustSize(); 
     646var _aa=$(this.getScheduleContainerId())||this.container; 
     647var _ab=this.calendar.options.displayIndexes; 
     648this.column.width=_aa.offsetWidth/_ab.length-_a9
    642649if(this.column.width<0){ 
    643650this.column.width=0; 
    644651} 
    645652},setCover:function(){ 
    646 var _aa=$(this.getScheduleContainerId())||this.container; 
     653var _ac=$(this.getScheduleContainerId())||this.container; 
    647654this.cover=this.cover||$(this.calendar.element.id.appendSuffix("cover")); 
    648655if(this.cover){ 
     
    650657this.cover=null; 
    651658} 
    652 _aa.appendChild(this.buildCover()); 
    653 Element.setStyle(this.cover,{height:Element.getHeight(_aa)+"px"}); 
     659_ac.appendChild(this.buildCover()); 
     660Element.setStyle(this.cover,{height:Element.getHeight(_ac)+"px"}); 
    654661},getDragDistance:function(){ 
    655 var _ab=this.getAdjustSize(); 
    656 return [this.column.width+_ab,this.column.height/2]; 
     662var _ad=this.getAdjustSize(); 
     663return [this.column.width+_ad,this.column.height/2]; 
    657664},getWeek:function(){ 
    658 var _ac=this.calendar.date; 
    659 var _ad=this.calendar.sortWeekIndex([0,1,2,3,4,5,6]); 
    660 var _ae=_ac.getDay(); 
    661 var _af=_ad.indexOf(_ae); 
    662 var _b0=[]; 
    663 var _b1=[]; 
    664 var _b2=this.calendar.options.displayIndexes; 
    665 _ad.each(function(_b3){ 
    666 var _b4=_b3-_ae
    667 var _b5=_ad.indexOf(_b3); 
    668 if((_b5<_af)&&(_b4>0)){ 
    669 _b4-=7; 
    670 }else{ 
    671 if((_b5>_af)&&(_b4<0)){ 
    672 _b4+=7; 
    673 } 
    674 } 
    675 var _b6=DateUtil.afterDays(_ac,_b4); 
    676 if(_b2.indexOf(_b3)>=0){ 
    677 _b0.push(_b6); 
    678 }else{ 
    679 _b1.push(_b6); 
     665var _ae=this.calendar.date; 
     666var _af=this.calendar.sortWeekIndex([0,1,2,3,4,5,6]); 
     667var _b0=_ae.getDay(); 
     668var _b1=_af.indexOf(_b0); 
     669var _b2=[]; 
     670var _b3=[]; 
     671var _b4=this.calendar.options.displayIndexes; 
     672_af.each(function(_b5){ 
     673var _b6=_b5-_b0
     674var _b7=_af.indexOf(_b5); 
     675if((_b7<_b1)&&(_b6>0)){ 
     676_b6-=7; 
     677}else{ 
     678if((_b7>_b1)&&(_b6<0)){ 
     679_b6+=7; 
     680} 
     681} 
     682var _b8=DateUtil.afterDays(_ae,_b6); 
     683if(_b4.indexOf(_b5)>=0){ 
     684_b2.push(_b8); 
     685}else{ 
     686_b3.push(_b8); 
    680687} 
    681688}.bind(this)); 
    682 return [_b0,_b1]; 
    683 },isSameStartDate:function(_b7,_b8){ 
    684 return ((_b8.getFullYear()==_b7.start.year)&&(_b8.getMonth()==_b7.start.month)&&(_b8.getDate()==_b7.start.day)); 
    685 },isSameFinishDate:function(_b9,_ba){ 
    686 return ((_ba.getFullYear()==_b9.finish.year)&&(_ba.getMonth()==_b9.finish.month)&&(_ba.getDate()==_b9.finish.day)); 
     689return [_b2,_b3]; 
     690},isSameStartDate:function(_b9,_ba){ 
     691return ((_ba.getFullYear()==_b9.start.year)&&(_ba.getMonth()==_b9.start.month)&&(_ba.getDate()==_b9.start.day)); 
     692},isSameFinishDate:function(_bb,_bc){ 
     693return ((_bc.getFullYear()==_bb.finish.year)&&(_bc.getMonth()==_bb.finish.month)&&(_bc.getDate()==_bb.finish.day)); 
    687694},getSelectorId:function(){ 
    688695return this.calendar.element.id.appendSuffix(AbstractCalendar.id.selector); 
    689 },clickDateText:function(_bb,_bc){ 
    690 Event.stop(_bb); 
    691 this.calendar.date=_bc
     696},clickDateText:function(_bd,_be){ 
     697Event.stop(_bd); 
     698this.calendar.date=_be
    692699this.calendar.options.displayType="day"; 
    693700this.calendar.refresh(); 
     
    698705this.containerDimensions=Element.getDimensions(this.container); 
    699706this.containerOffset=Position.cumulativeOffset(this.container); 
    700 },mouseOverSubSchedule:function(_bd){ 
    701 _bd.each(function(_be){ 
    702 var _bf=Element.getStyle(_be,"borderTopColor"); 
    703 var _c0=Element.getStyle(_be,"border"); 
    704 if(_bf&&(_bf!="")&&_c0&&(_c0!="")){ 
    705 if(!_be.originalBorderColor){ 
    706 _be.originalBorderColor=_bf
    707 } 
    708 Element.setStyle(_be,{borderColor:new Color(_bf).invert()}); 
    709 }else{ 
    710 Element.addClassName(_be,Calendar.className.scheduleItemSelect); 
    711 } 
    712 }); 
    713 },mouseOutSubSchedule:function(_c1){ 
    714 _c1.each(function(_c2){ 
    715 if(_c2.originalBorderColor){ 
    716 Element.setStyle(_c2,{borderColor:_c2.originalBorderColor}); 
    717 }else{ 
    718 Element.removeClassName(_c2,Calendar.className.scheduleItemSelect); 
    719 } 
    720 }); 
    721 },toDate:function(_c3){ 
    722 return DateUtil.toDate(_c3); 
     707},mouseOverSubSchedule:function(_bf){ 
     708_bf.each(function(_c0){ 
     709var _c1=Element.getStyle(_c0,"borderTopColor"); 
     710var _c2=Element.getStyle(_c0,"borderTop"); 
     711if(_c1&&(_c1!="")&&_c2&&(_c2!="")){ 
     712if(!_c0.originalBorderColor){ 
     713_c0.originalBorderColor=_c1
     714} 
     715Element.setStyle(_c0,{borderColor:new Color(_c1).invert()}); 
     716}else{ 
     717Element.addClassName(_c0,Calendar.className.scheduleItemSelect); 
     718} 
     719}); 
     720},mouseOutSubSchedule:function(_c3){ 
     721_c3.each(function(_c4){ 
     722if(_c4.originalBorderColor){ 
     723Element.setStyle(_c4,{borderColor:_c4.originalBorderColor}); 
     724}else{ 
     725Element.removeClassName(_c4,Calendar.className.scheduleItemSelect); 
     726} 
     727}); 
     728},toDate:function(_c5){ 
     729return DateUtil.toDate(_c5); 
    723730},getCalendarTableId:function(){ 
    724731return this.ids.calTable; 
    725732},setSkipNode:function(){ 
    726 var _c4=new Template(this.calendar.options.skipString); 
    727 this.skipNode.each(function(_c5){ 
    728 _c5.value.innerHTML=_c4.evaluate({count:this.skipSchedules[_c5.key].length}); 
     733var _c6=new Template(this.calendar.options.skipString); 
     734this.skipNode.each(function(_c7){ 
     735_c7.value.innerHTML=_c6.evaluate({count:this.skipSchedules[_c7.key].length}); 
    729736}.bind(this)); 
    730737},clickSkipNode:function(){ 
    731738this.hideTooltip(); 
    732739this.calendar.options.clickSkipNode.apply(this,arguments); 
    733 },showTooltip:function(e,id,_c8){ 
    734 var _c9=$(this.getTooltipId()); 
    735 var _ca=this.skipSchedules[id]; 
    736 var _cb=null; 
    737 var _cc=null; 
    738 _c9.innerHTML=_ca.map(function(s){ 
    739 _cb=(DateUtil.toDate(s.start).sameDate(_c8))?s.start:{hour:0,min:0}; 
    740 _cc=(DateUtil.toDate(s.finish).sameDate(_c8))?s.finish:{hour:0,min:0}; 
    741 return this.calendar.formatTime(_cb)+"-"+this.calendar.formatTime(_cc)+" "+s.description; 
     740},showTooltip:function(e,id,_ca){ 
     741var _cb=$(this.getTooltipId()); 
     742var _cc=this.skipSchedules[id]; 
     743var _cd=null; 
     744var _ce=null; 
     745_cb.innerHTML=_cc.map(function(s){ 
     746_cd=(DateUtil.toDate(s.start).sameDate(_ca))?s.start:{hour:0,min:0}; 
     747_ce=(DateUtil.toDate(s.finish).sameDate(_ca))?s.finish:{hour:0,min:0}; 
     748return this.calendar.formatTime(_cd)+"-"+this.calendar.formatTime(_ce)+" "+s.description; 
    742749}.bind(this)).join("<br />"); 
    743 Element.positionedByCursor(_c9,e,{top:10,left:10}); 
    744 _c9.show(); 
     750Element.positionedByCursor(_cb,e,{top:10,left:10}); 
     751_cb.show(); 
    745752},hideTooltip:function(){ 
    746753$(this.getTooltipId()).hide(); 
     
    749756CalendarMonth.id=["year","month","column","nextYear","nextMonth","preYear","preMonth","calTable","scheduleContainer","container","emptyRow"]; 
    750757Object.extend(CalendarMonth.prototype,AbstractCalendar.prototype); 
    751 Object.extend(CalendarMonth.prototype,{initialize:function(_ce){ 
    752 this.calendar=_ce
     758Object.extend(CalendarMonth.prototype,{initialize:function(_d0){ 
     759this.calendar=_d0
    753760this.week=this.getWeek()[0]; 
    754761this.ids=SpinelzUtil.concat(this.calendar.element.id,CalendarMonth.id); 
     
    757764return "<td class='"+this.calendar.classNames.preYears+"'>"+"<div id='"+this.ids.preYear+"' class='"+this.calendar.classNames.preYearMark+"'></div>"+"<div id='"+this.ids.preMonth+"' class='"+this.calendar.classNames.preMonthMark+"'></div>"+"</td>"; 
    758765},buildHeaderCenter:function(){ 
    759 var _cf=[]; 
     766var _d1=[]; 
    760767if(this.calendar.options.monthHeaderFormat){ 
    761 var _d0=this.calendar.date; 
    762 var _d1=new Template(this.calendar.options.monthHeaderFormat).evaluate({year:_d0.getFullYear(),month:_d0.getMonth()+1}); 
    763 _cf=[_d1," "]; 
    764 } 
    765 return "<td class='"+this.calendar.classNames.years+"'>"+"<span id='"+this.ids.month+"' class='"+this.calendar.classNames.ym+"'>"+(_cf[0]||DateUtil.months[this.calendar.date.getMonth()])+"</span>"+"<span id='"+this.ids.year+"' class='"+this.calendar.classNames.ym+"'>"+(_cf[1]||this.calendar.date.getFullYear())+"</span>"+"</td>"; 
     768var _d2=this.calendar.date; 
     769var _d3=new Template(this.calendar.options.monthHeaderFormat).evaluate({year:_d2.getFullYear(),month:_d2.getMonth()+1}); 
     770_d1=[_d3," "]; 
     771} 
     772return "<td class='"+this.calendar.classNames.years+"'>"+"<span id='"+this.ids.month+"' class='"+this.calendar.classNames.ym+"'>"+(_d1[0]||DateUtil.months[this.calendar.date.getMonth()])+"</span>"+"<span id='"+this.ids.year+"' class='"+this.calendar.classNames.ym+"'>"+(_d1[1]||this.calendar.date.getFullYear())+"</span>"+"</td>"; 
    766773},buildHeaderRight:function(){ 
    767774return "<td class='"+this.calendar.classNames.nextYears+"'>"+"<div id='"+this.ids.nextMonth+"' class='"+this.calendar.classNames.nextMonthMark+"'></div>"+"<div id='"+this.ids.nextYear+"' class='"+this.calendar.classNames.nextYearMark+"'></div>"+"</td>"; 
     
    769776return "<div>"+this.buildTableHeader()+this.buildScheduleContainer()+"</div>"; 
    770777},buildTableHeader:function(){ 
    771 var _d2=100/this.calendar.options.displayIndexes.length+"%"; 
    772 var _d3=this.calendar.options.displayIndexes.last(); 
    773 var _d4=this.ids.column; 
    774 var _d5=this.calendar.options.displayIndexes.inject("",function(_d6,i){ 
    775 var id=_d4.appendSuffix(i); 
     778var _d4=100/this.calendar.options.displayIndexes.length+"%"; 
     779var _d5=this.calendar.options.displayIndexes.last(); 
     780var _d6=this.ids.column; 
     781var _d7=this.calendar.options.displayIndexes.inject("",function(_d8,i){ 
     782var id=_d6.appendSuffix(i); 
    776783this.columnIds.push(id); 
    777 var _d9=(_d3==i)?this.calendar.classNames.thRight:""; 
    778 _d6+="<th id='"+id+"' class='"+_d9+"' width='"+_d2+"'>"+this.calendar.options.dayOfWeek[i]+"</th>"; 
    779 return _d6
     784var _db=(_d5==i)?this.calendar.classNames.thRight:""; 
     785_d8+="<th id='"+id+"' class='"+_db+"' width='"+_d4+"'>"+this.calendar.options.dayOfWeek[i]+"</th>"; 
     786return _d8
    780787}.bind(this)); 
    781 return "<table class='"+this.calendar.classNames.table+"'>"+"<tr>"+_d5+"</tr>"+"</table>"; 
     788return "<table class='"+this.calendar.classNames.table+"'>"+"<tr>"+_d7+"</tr>"+"</table>"; 
    782789},buildScheduleContainer:function(){ 
    783 var _da=(this.calendar.options.size=="large")?"position: relative":""; 
    784 return "<div id='"+this.getScheduleContainerId()+"' style='"+_da+";'>"+this.buildTableData()+this.buildSelector()+"</div>"; 
     790var _dc=(this.calendar.options.size=="large")?"position: relative":""; 
     791return "<div id='"+this.getScheduleContainerId()+"' style='"+_dc+";'>"+this.buildTableData()+this.buildSelector()+"</div>"; 
    785792},buildTableData:function(){ 
    786 var _db=this.calendar.options.displayIndexes; 
    787 var _dc=new Date(); 
    788 var _dd=this.calendar.date.getFullYear(); 
    789 var _de=this.calendar.date.getMonth(); 
    790 var _df=DateUtil.getFirstDate(_dd,_de).getDay(); 
    791 var _e0=DateUtil.getLastDate(_dd,_de).getDate(); 
     793var _dd=this.calendar.options.displayIndexes; 
     794var _de=new Date(); 
     795var _df=this.calendar.date.getFullYear(); 
     796var _e0=this.calendar.date.getMonth(); 
     797var _e1=DateUtil.getFirstDate(_df,_e0).getDay(); 
     798var _e2=DateUtil.getLastDate(_df,_e0).getDate(); 
    792799var trs=[]; 
    793800var tds=[]; 
    794 var _e3=100/_db.length+"%"; 
    795 var _e4=_db.last(); 
    796 var _e5,_e6,_e7,_e8,_e9,i=null; 
     801var _e5=100/_dd.length+"%"; 
     802var _e6=_dd.last(); 
     803var _e7,_e8,_e9,_ea,_eb,i=null; 
    797804this.dateMap={}; 
    798 var _eb=this.calendar.options.weekIndex; 
    799 var _ec=DateUtil.dayOfWeek.length*6; 
     805var _ed=this.calendar.options.weekIndex; 
     806var _ee=DateUtil.dayOfWeek.length*6; 
    800807var i=null; 
    801808var day=1; 
    802 if(_eb<=_df){ 
    803 i=_eb
    804 _ec+=i; 
    805 }else{ 
    806 i=_eb-7; 
    807 _ec-=i; 
    808 } 
    809 var _ee=_df-_eb
    810 if(_ee<0){ 
    811 _ee+DateUtil.dayOfWeek.length; 
    812 } 
    813 if((_e0+_ee)>_ec){ 
    814 _ec+=DateUtil.dayOfWeek.length; 
    815 } 
    816 var _ef=_eb
    817 var _f0=0; 
    818 for(;i<_ec;i++){ 
    819 if(_db.include(_ef)){ 
    820 var _f1=(_ef==_e4)?this.calendar.classNames.tdRight:""; 
    821 if(i<_df){ 
    822 var _f2=i-_df+1; 
    823 _e8=new Date(this.calendar.date.getFullYear(),this.calendar.date.getMonth(),_f2); 
    824 tds.push(this.buildEmptyRow(_e8,_e3,_f1,_f2)); 
    825 }else{ 
    826 if(day>_e0){ 
    827 _e8=new Date(this.calendar.date.getFullYear(),this.calendar.date.getMonth(),day); 
    828 tds.push(this.buildEmptyRow(_e8,_e3,_f1,day)); 
    829 }else{ 
    830 if(i==_df){ 
    831 _ec+=_f0
    832 } 
    833 _e8=new Date(this.calendar.date.getFullYear(),this.calendar.date.getMonth(),day); 
    834 _e6=this.calendar.options.holidays[_e8.toDateString()]; 
     809if(_ed<=_e1){ 
     810i=_ed
     811_ee+=i; 
     812}else{ 
     813i=_ed-7; 
     814_ee-=i; 
     815} 
     816var _f0=_e1-_ed
     817if(_f0<0){ 
     818_f0+DateUtil.dayOfWeek.length; 
     819} 
     820if((_e2+_f0)>_ee){ 
     821_ee+=DateUtil.dayOfWeek.length; 
     822} 
     823var _f1=_ed
     824var _f2=0; 
     825for(;i<_ee;i++){ 
     826if(_dd.include(_f1)){ 
     827var _f3=(_f1==_e6)?this.calendar.classNames.tdRight:""; 
     828if(i<_e1){ 
     829var _f4=i-_e1+1; 
     830_ea=new Date(this.calendar.date.getFullYear(),this.calendar.date.getMonth(),_f4); 
     831tds.push(this.buildEmptyRow(_ea,_e5,_f3,_f4)); 
     832}else{ 
     833if(day>_e2){ 
     834_ea=new Date(this.calendar.date.getFullYear(),this.calendar.date.getMonth(),day); 
     835tds.push(this.buildEmptyRow(_ea,_e5,_f3,day)); 
     836}else{ 
     837if(i==_e1){ 
     838_ee+=_f2
     839} 
     840_ea=new Date(this.calendar.date.getFullYear(),this.calendar.date.getMonth(),day); 
     841_e8=this.calendar.options.holidays[_ea.toDateString()]; 
    835842if(this.calendar.options.size==Calendar.size.large){ 
    836 tds.push(this.buildLargeRow(_e8,_e6,_dc,_e3,_f1)); 
    837 }else{ 
    838 _e7=this.calendar.options.schedules.detect(function(_f3){ 
    839 var _f4=DateUtil.toDate(_f3.start); 
    840 return _e8.sameDate(_f4); 
    841 }); 
    842 tds.push(this.buildSmallRow(_e8,_e6,_e7,_dc,_e3,_f1)); 
    843 } 
    844 } 
    845 } 
    846 _f0++; 
    847 } 
    848 if(i>=_df){ 
     843tds.push(this.buildLargeRow(_ea,_e8,_de,_e5,_f3)); 
     844}else{ 
     845_e9=this.calendar.options.schedules.detect(function(_f5){ 
     846var _f6=DateUtil.toDate(_f5.start); 
     847return _ea.sameDate(_f6); 
     848}); 
     849tds.push(this.buildSmallRow(_ea,_e8,_e9,_de,_e5,_f3)); 
     850} 
     851} 
     852} 
     853_f2++; 
     854} 
     855if(i>=_e1){ 
    849856day++; 
    850857} 
    851 if(_ef==_e4){ 
     858if(_f1==_e6){ 
    852859if(!(tds.first().match(/empty/)&&tds.last().match(/empty/))){ 
    853860trs.push("<tr>"+tds.join("")+"</tr>"); 
     
    855862tds=[]; 
    856863} 
    857 if(_ef>=6){ 
    858 _ef=0; 
    859 }else{ 
    860 _ef++; 
     864if(_f1>=6){ 
     865_f1=0; 
     866}else{ 
     867_f1++; 
    861868} 
    862869} 
    863870this.rowMax=trs.length-1; 
    864871return "<table id='"+this.getCalendarTableId()+"' class='"+this.calendar.classNames.table+"'>"+trs.join("")+"</table>"; 
    865 },buildEmptyRow:function(_f5,_f6,_f7,_f8){ 
    866 var id=this.ids.emptyRow.appendSuffix(_f8); 
    867 this.dateMap[id]=_f5
    868 return "<td id='"+id+"' class='"+_f7+"' width='"+_f6+"'>&nbsp;</td>"; 
    869 },buildLargeRow:function(_fa,_fb,_fc,_fd,_fe){ 
    870 var _ff=null; 
    871 var _100=(_fa.days()==_fc.days())?this.calendar.classNames.highlightDay:""; 
    872 var _101=this.calendar.options.clickDateText; 
    873 if(_101||(_101==null)){ 
    874 _ff="<span class='"+_100+"'>"+_fa.getDate()+"</span>"; 
    875 }else{ 
    876 _ff="<span class='"+_100+"' style='text-decoration: none;'>"+_fa.getDate()+"</span>"; 
    877 } 
    878 var _102=""; 
     872},buildEmptyRow:function(_f7,_f8,_f9,_fa){ 
     873var id=this.ids.emptyRow.appendSuffix(_fa); 
     874this.dateMap[id]=_f7
     875return "<td id='"+id+"' class='"+_f9+"' width='"+_f8+"'>&nbsp;</td>"; 
     876},buildLargeRow:function(_fc,_fd,_fe,_ff,_100){ 
     877var _101=null; 
     878var _102=(_fc.days()==_fe.days())?this.calendar.classNames.highlightDay:""; 
     879var _103=this.calendar.options.clickDateText; 
     880if(_103||(_103==null)){ 
     881_101="<span class='"+_102+"'>"+_fc.getDate()+"</span>"; 
     882}else{ 
     883_101="<span class='"+_102+"' style='text-decoration: none;'>"+_fc.getDate()+"</span>"; 
     884} 
     885var _104=""; 
    879886var name=""; 
    880 if(_fb){ 
    881 _102=this.calendar.classNames.holiday; 
    882 name="<span class='"+this.calendar.classNames.holidayName+"'>"+_fb.name+"</span>"; 
    883 }else{ 
    884 if(this.calendar.isRegularHoliday(_fa.getDay())){ 
    885 _102=this.calendar.classNames.regularHoliday; 
    886 }else{ 
    887 _102=this.calendar.classNames.date; 
    888 } 
    889 } 
    890 _fe=[_102,_fe]; 
    891 var id=this.getDateId(_fa); 
    892 this.dateMap[id]=_fa
    893 return "<td id='"+id+"' class='"+_fe.join(" ")+"' width='"+_fd+"'>"+"<div class='"+this.calendar.classNames.dateContainer+"'>"+_ff+name+"</div>"+"</td>"; 
    894 },buildSmallRow:function(date,_106,_107,_108,_109,_10a){ 
     887if(_fd){ 
     888_104=this.calendar.classNames.holiday; 
     889name="<span class='"+this.calendar.classNames.holidayName+"'>"+_fd.name+"</span>"; 
     890}else{ 
     891if(this.calendar.isRegularHoliday(_fc.getDay())){ 
     892_104=this.calendar.classNames.regularHoliday; 
     893}else{ 
     894_104=this.calendar.classNames.date; 
     895} 
     896} 
     897_100=[_104,_100]; 
     898var id=this.getDateId(_fc); 
     899this.dateMap[id]=_fc
     900return "<td id='"+id+"' class='"+_100.join(" ")+"' width='"+_ff+"'>"+"<div class='"+this.calendar.classNames.dateContainer+"'>"+_101+name+"</div>"+"</td>"; 
     901},buildSmallRow:function(date,_108,_109,_10a,_10b,_10c){ 
    895902var id=this.getDateId(date); 
    896903this.dateMap[id]=date; 
    897 var _10c=$H({id:id,width:_109}); 
    898 _10a=[]; 
    899 if(_107){ 
    900 _10a.push(this.calendar.classNames.schedule); 
    901 var _10d=_107[0]; 
    902 if(_10d){ 
    903 _10c.title=_10d.description; 
    904 } 
    905 }else{ 
    906 if(_106){ 
    907 _10a.push(this.calendar.classNames.holiday); 
    908 _10c.title=_106.name.stripTags(); 
     904var _10e=$H({id:id,width:_10b}); 
     905_10c=[]; 
     906if(_109){ 
     907_10c.push(this.calendar.classNames.schedule); 
     908var _10f=_109[0]; 
     909if(_10f){ 
     910_10e.title=_10f.description; 
     911} 
     912}else{ 
     913if(_108){ 
     914_10c.push(this.calendar.classNames.holiday); 
     915_10e.title=_108.name.stripTags(); 
    909916}else{ 
    910917if(this.calendar.isRegularHoliday(date.getDay())){ 
    911 _10a.push(this.calendar.classNames.regularHoliday); 
    912 }else{ 
    913 _10a.push(this.calendar.classNames.date); 
    914 } 
    915 } 
    916 } 
    917 if(date.days()==_108.days()){ 
    918 _10a.push(Calendar.className.highlightDay); 
    919 } 
    920 _10a.push(_10a); 
    921 _10a=_10a.join(" "); 
    922 _10c=_10c.inject("",function(html,pair){ 
     918_10c.push(this.calendar.classNames.regularHoliday); 
     919}else{ 
     920_10c.push(this.calendar.classNames.date); 
     921} 
     922} 
     923} 
     924if(date.days()==_10a.days()){ 
     925_10c.push(Calendar.className.highlightDay); 
     926} 
     927_10c.push(_10c); 
     928_10c=_10c.join(" "); 
     929_10e=_10e.inject("",function(html,pair){ 
    923930return html+" "+pair.key+"=\""+pair.value+"\""; 
    924931}); 
    925 return "<td class=\""+_10a+"\""+_10c+">"+date.getDate()+"</td>"; 
     932return "<td class=\""+_10c+"\""+_10e+">"+date.getDate()+"</td>"; 
    926933},beforeBuild:function(){ 
    927934this.column={}; 
     
    930937rule=CssUtil.getCssRuleBySelectorText("."+Calendar.className.dateContainer); 
    931938this.column.dateTextHeight=parseInt(rule.style["height"],10); 
    932 },buildSchedule:function(_111,_112){ 
    933 var id="scheduleItem_"+_111.id; 
    934 var _114=(_111.edit==undefined||_111.edit); 
     939},buildSchedule:function(_113,_114){ 
     940var id="scheduleItem_"+_113.id; 
     941var _116=(_113.edit==undefined||_113.edit); 
    935942var item=Builder.node("DIV",{id:id}); 
    936 var _116=DateUtil.toDate(_111.start); 
    937 var _117=DateUtil.toDate(_111.finish); 
    938 if(_111.finish.hour==0&&_111.finish.min==0){ 
    939 _117=_117.advance({days:-1}); 
    940 } 
    941 var _118=this.calendar.options.noEvent; 
    942 var _119={}; 
     943var _118=DateUtil.toDate(_113.start); 
     944var _119=DateUtil.toDate(_113.finish); 
     945if(_113.finish.hour==0&&_113.finish.min==0){ 
     946_119=_119.advance({days:-1}); 
     947} 
     948var _11a=this.calendar.options.noEvent; 
     949var _11b={}; 
    943950if(!UserAgent.isIE()){ 
    944 _119.whiteSpace="nowrap"; 
    945 } 
    946 if(_118){ 
    947 _119.cursor="default"; 
    948 } 
    949 if(_116.sameDate(_117)){ 
     951_11b.whiteSpace="nowrap"; 
     952} 
     953if(_11a){ 
     954_11b.cursor="default"; 
     955} 
     956if(_118.sameDate(_119)){ 
    950957this.calendar.css.addClassNames(item,"scheduleItemNoBorder"); 
    951958}else{ 
    952 if(_111.background_color){ 
    953 _119.backgroundColor=_111.background_color; 
    954 
    955 if(_111.frame_color){ 
    956 _119.border="2px solid "+_111.frame_color; 
     959if(_113.frame_color){ 
     960_11b.border="2px solid "+_113.frame_color; 
     961_11b.backgroundColor=_113.frame_color; 
    957962} 
    958963this.calendar.css.addClassNames(item,"scheduleItemLarge"); 
    959964} 
    960 Element.setStyle(item,_119); 
    961 var _11a=[]; 
    962 var _11b=null; 
    963 var _11c=(_111.removable==undefined||_111.removable); 
    964 if(_114&&_11c){ 
    965 _11b="scheduleDeleteImg_"+_111.id; 
    966 _11a.push(_11b); 
    967 var _11d=Builder.node("DIV",{id:_11b,className:this.calendar.css.joinClassNames("deleteImg"),style:"display: none;"}); 
    968 item.appendChild(_11d); 
    969 if(!_118){ 
    970 Event.observe(_11d,"click",this.clickDeleteImage.bind(this,_111)); 
    971 
    972 
    973 if(_111.copiable){ 
    974 var _11e="display: none;"; 
    975 if(_11a.length>0){ 
    976 _11e+="right: 17px;"; 
    977 
    978 _11b="scheduleCopyImg_"+_111.id; 
    979 _11a.push(_11b); 
    980 var _11f=Builder.node("DIV",{id:_11b,className:this.calendar.css.joinClassNames("copyImg"),style:_11e}); 
    981 item.appendChild(_11f); 
    982 if(!_118){ 
    983 Event.observe(_11f,"click",this.clickCopyImage.bind(this,_111)); 
    984 
    985 
    986 if(!_118&&(_11a.length>0)){ 
    987 Event.observe(item,"mouseover",this.showImage.bind(this,_11a)); 
    988 Event.observe(item,"mouseout",this.hideImage.bind(this,_11a)); 
    989 
    990 if(!_118&&this.calendar.options.dblclickSchedule){ 
    991 Event.observe(item,"dblclick",this.calendar.options.dblclickSchedule.bind(this,_111)); 
    992 
    993 var _120=null; 
    994 if(_114){ 
    995 _120=Builder.node("DIV",{className:this.calendar.css.joinClassNames("scheduleHandler")}); 
    996 if(_118){ 
    997 Element.hide(_120); 
    998 
     965Element.setStyle(item,_11b); 
     966var _11c=[]; 
     967var _11d=(_113.removable==undefined||_113.removable); 
     968if(_116&&_11d){ 
     969var _11e=Builder.node("DIV",{id:"scheduleDeleteImg_"+_113.id,className:this.calendar.css.joinClassNames("deleteImg"),style:"display: none;"}); 
     970_11c.push(_11e); 
     971item.appendChild(_11e); 
     972if(!_11a){ 
     973Event.observe(_11e,"click",this.clickDeleteImage.bind(this,_113)); 
     974
     975
     976if(_113.copiable){ 
     977var _11f="display: none;"; 
     978if(_11c.length>0){ 
     979_11f+="right: 17px;"; 
     980
     981var _120=Builder.node("DIV",{id:"scheduleCopyImg_"+_113.id,className:this.calendar.css.joinClassNames("copyImg"),style:_11f}); 
     982_11c.push(_120); 
    999983item.appendChild(_120); 
     984if(!_11a){ 
     985Event.observe(_120,"click",this.clickCopyImage.bind(this,_113)); 
     986} 
     987} 
     988if(!_11a&&this.calendar.options.dblclickSchedule){ 
     989Event.observe(item,"dblclick",this.calendar.options.dblclickSchedule.bind(this,_113)); 
    1000990} 
    1001991var icon=null; 
    1002 if(_111.icon){ 
    1003 icon=Builder.node("IMG",{src:_111.icon,alt:"icon",style:"float: left;",width:16,height:16}); 
     992if(_113.icon){ 
     993icon=Builder.node("IMG",{id:"private_img_"+_113.id,src:_113.icon,alt:"icon",style:"float: left;",width:16,height:16}); 
    1004994item.appendChild(icon); 
    1005 
    1006 if(!_111.publicity){ 
     995}else{ 
     996if(Calendar.defaultIconPath){ 
     997icon=Builder.node("IMG",{id:"private_img_"+_113.id,src:Calendar.defaultIconPath,alt:"icon",style:"float: left;",width:16,height:16}); 
     998item.appendChild(icon); 
     999
     1000
     1001var _122=null; 
     1002if(!_113.publicity){ 
    10071003if(Calendar.privateImgPath){ 
    1008 icon=Builder.node("IMG",{src:Calendar.privateImgPath,alt:"private",style:"float: left;",width:16,height:16}); 
    1009 item.appendChild(icon); 
    1010 }else{ 
    1011 icon=Builder.node("DIV",{id:"private_img_"+_111.id}); 
    1012 this.calendar.css.addClassNames(icon,"privateImg"); 
    1013 item.appendChild(icon); 
    1014 
     1004_122=Builder.node("IMG",{src:Calendar.privateImgPath,alt:"private",style:"position: absolute; right: 0px; display: block;",width:16,height:16}); 
     1005item.appendChild(_122); 
     1006}else{ 
     1007_122=Builder.node("DIV",{id:"private_img_"+_113.id}); 
     1008this.calendar.css.addClassNames(_122,"privateImg"); 
     1009item.appendChild(_122); 
     1010
     1011
     1012if(!_11a&&(_11c.length>0)){ 
     1013Event.observe(item,"mouseover",this.showImage.bind(this,_11c,_122)); 
     1014Event.observe(item,"mouseout",this.hideImage.bind(this,_11c,_122)); 
    10151015} 
    10161016var body=Builder.node("DIV"); 
    1017 var text=this.getTimeText((_112)?_111.start:{hour:"0",min:"0"},_111.finish); 
    1018 var _124=Builder.node("DIV",{id:id+"_text",style:"float: left;"},[text]); 
    1019 this.calendar.css.addClassNames(_124,"scheduleTimeArea"); 
    1020 item.appendChild(_124); 
    1021 var _125=_111.description.unescapeHTML(); 
    1022 item.appendChild(Builder.node("DIV",{id:id+"_description"},[_125])); 
    1023 item.title=text+"-"+this.calendar.formatTime(_111.finish)+" "+_125
    1024 item.schedule=_111
    1025 return [item,_120]; 
    1026 },adjustScheduleStyle:function(item,_127,_128,_129){ 
     1017var text=this.getTimeText((_114)?_113.start:{hour:"0",min:"0"},_113.finish); 
     1018var _125=Builder.node("DIV",{id:id+"_text",style:"float: left;"},[text]); 
     1019this.calendar.css.addClassNames(_125,"scheduleTimeAreaMonth"); 
     1020item.appendChild(_125); 
     1021var _126=_113.description.unescapeHTML(); 
     1022item.appendChild(Builder.node("DIV",{id:id+"_description"},[_126])); 
     1023item.title=text+"-"+this.calendar.formatTime(_113.finish)+" "+_126
     1024item.schedule=_113
     1025return [item]; 
     1026},adjustScheduleStyle:function(item,_128,_129,_12a){ 
    10271027var self=this; 
    1028 var _12b=parseInt(Element.getStyle(item,"height"),10); 
     1028var _12c=parseInt(Element.getStyle(item,"height"),10); 
    10291029var top=parseInt(Element.getStyle(item,"top"),10); 
    1030 var _12d=this.getScheduleRange(item); 
     1030var _12e=this.getScheduleRange(item); 
    10311031var tops=[]; 
    1032 var _12f=3; 
    1033 _129.each(function(_130){ 
    1034 var _131=self.getScheduleRange(_130); 
    1035 if(_12d.any(function(r){ 
    1036 return _131.include(r); 
     1032var _130=3; 
     1033_12a.each(function(_131){ 
     1034var _132=self.getScheduleRange(_131); 
     1035if(_12e.any(function(r){ 
     1036return _132.include(r); 
    10371037})){ 
    1038 tops.push(_130.topIndex); 
    1039 } 
    1040 }); 
    1041 var _133=$R(0,tops.length,true).detect(function(i){ 
     1038tops.push(_131.topIndex); 
     1039} 
     1040}); 
     1041var _134=$R(0,tops.length,true).detect(function(i){ 
    10421042return !tops.include(i); 
    10431043}); 
    1044 if(isNaN(_133)){ 
    1045 _133=tops.length; 
    1046 } 
    1047 item.topIndex=_133
    1048 Element.setStyle(item,{top:top+(_12b+2)*_133+"px"}); 
    1049 if(_133>=_12f){ 
     1044if(isNaN(_134)){ 
     1045_134=tops.length; 
     1046} 
     1047item.topIndex=_134
     1048Element.setStyle(item,{top:top+(_12c+2)*_134+"px"}); 
     1049if(_134>=_130){ 
    10501050Element.hide(item); 
    1051 var node=this.buildSkipSchedule(_127+"_"+_128,item); 
     1051var node=this.buildSkipSchedule(_128+"_"+_129,item); 
    10521052if(node){ 
    10531053var left=Element.getStyle(item,"left"); 
    1054 Element.setStyle(node,{top:top+(_12b+2)*_133+"px",left:left}); 
     1054Element.setStyle(node,{top:top+(_12c+2)*_134+"px",left:left}); 
    10551055} 
    10561056return node; 
    10571057} 
    1058 },buildSkipSchedule:function(_137,item){ 
    1059 var id=this.calendar.element.id.appendSuffix(_137); 
     1058},buildSkipSchedule:function(_138,item){ 
     1059var id=this.calendar.element.id.appendSuffix(_138); 
    10601060if(!this.skipNode[id]){ 
    1061 var _13a=this.getAdjustSize()+(UserAgent.isIE()?0.5:0); 
    1062 var _13b=this.column.width+_13a-1+"px"; 
    1063 var node=Builder.node("a",{id:id,style:"display: block; z-index: 1000; cursor: pointer; width: "+_13b+";",href:"javascript:void(0);"},["more"]); 
     1061var _13b=this.getAdjustSize()+(UserAgent.isIE()?0.5:0); 
     1062var _13c=this.column.width+_13b-1+"px"; 
     1063var node=Builder.node("a",{id:id,style:"display: block; z-index: 1000; cursor: pointer; width: "+_13c+";",href:"javascript:void(0);"},["more"]); 
    10641064this.calendar.css.addClassNames(node,"skipNode"); 
    10651065node.skipId=id; 
     
    10731073return item.cellIndex+i; 
    10741074}); 
    1075 },setScheduleBaseStyle:function(item,_140,_141,_142){ 
    1076 var _143=this.column.height; 
    1077 var top=_143*_140+this.column.dateTextHeight; 
    1078 var _145=this.getAdjustSize()+(UserAgent.isIE()?0.5:0); 
    1079 Element.setStyle(item,{top:top+"px",width:this.column.width*_142+_145*(_142-1)+"px",left:this.column.width*_141+_141*_145+"px"}); 
     1075},setScheduleBaseStyle:function(item,_141,_142,_143){ 
     1076var _144=this.column.height; 
     1077var top=_144*_141+this.column.dateTextHeight; 
     1078var _146=this.getAdjustSize()+(UserAgent.isIE()?0.5:0); 
     1079Element.setStyle(item,{top:top+"px",width:this.column.width*_143+_146*(_143-1)+"px",left:this.column.width*_142+_142*_146+"px"}); 
    10801080},afterBuild:function(){ 
    10811081this.calendar.options.startAfterBuild(); 
    1082 var _146=this.getTooltipId(); 
    1083 if($(_146)){ 
    1084 Element.appendToBody(_146); 
     1082var _147=this.getTooltipId(); 
     1083if($(_147)){ 
     1084Element.appendToBody(_147); 
    10851085} 
    10861086this.scheduleNodes=[]; 
     
    10951095this.setSelector(); 
    10961096var self=this; 
    1097 var _148=this.calendar.options.displayIndexes; 
    1098 var _149=this.getDragDistance(); 
    1099 var _14a=$R(0,$(this.getCalendarTableId()).rows.length).map(function(){ 
     1097var _149=this.calendar.options.displayIndexes; 
     1098var _14a=this.getDragDistance(); 
     1099var _14b=$R(0,$(this.getCalendarTableId()).rows.length).map(function(){ 
    11001100return []; 
    11011101}); 
    11021102var date=this.calendar.date; 
    1103 var _14c=DateUtil.getFirstDate(date.getFullYear(),date.getMonth()); 
    1104 var _14d=_14c.days(); 
    1105 var _14e=DateUtil.getLastDate(date.getFullYear(),date.getMonth()).days(); 
    1106 self.calendar.options.schedules.each(function(_14f,_150){ 
    1107 var _151=self.toDate(_14f.start); 
    1108 var _152=_151.days(); 
    1109 var _153=self.toDate(_14f.finish); 
    1110 var _154=_153.days(); 
    1111 var days=self.getDayDiff(_14f); 
    1112 if(_14f.finish.hour==0&&_14f.finish.min==0){ 
     1103var _14d=DateUtil.getFirstDate(date.getFullYear(),date.getMonth()); 
     1104var _14e=_14d.days(); 
     1105var _14f=DateUtil.getLastDate(date.getFullYear(),date.getMonth()).days(); 
     1106self.calendar.options.schedules.each(function(_150,_151){ 
     1107var _152=self.toDate(_150.start); 
     1108var _153=_152.days(); 
     1109var _154=self.toDate(_150.finish); 
     1110var _155=_154.days(); 
     1111var days=self.getDayDiff(_150); 
     1112if(_150.finish.hour==0&&_150.finish.min==0){ 
    11131113days--; 
    11141114} 
    1115 if((_152>=_14d&&_152<=_14e)||(_154>=_14d&&_154<=_14e)){ 
    1116 if(!_14c.sameMonth(_151)){ 
    1117 _151=_14c
    1118 } 
    1119 self.setSchedule(_14f,_14a,_149,days); 
     1115if((_153>=_14e&&_153<=_14f)||(_155>=_14e&&_155<=_14f)){ 
     1116if(!_14d.sameMonth(_152)){ 
     1117_152=_14d
     1118} 
     1119self.setSchedule(_150,_14b,_14a,days); 
    11201120} 
    11211121}); 
     
    11421142} 
    11431143} 
    1144 },setSchedule:function(_158,_159,_15a,days){ 
    1145 var _15c=[]; 
    1146 var _15d=6; 
    1147 var _15e=DateUtil.toDate(_158.start); 
    1148 var date=_15e
    1149 var _160=this.calendar.options.displayIndexes; 
    1150 var _161=this.calendar.date; 
    1151 var _162=this.calendar.options.noEvent; 
    1152 var _163=this.calendar.options.clickSkipNode; 
     1144},setSchedule:function(_159,_15a,_15b,days){ 
     1145var _15d=[]; 
     1146var _15e=6; 
     1147var _15f=DateUtil.toDate(_159.start); 
     1148var date=_15f
     1149var _161=this.calendar.options.displayIndexes; 
     1150var _162=this.calendar.date; 
     1151var _163=this.calendar.options.noEvent; 
     1152var _164=this.calendar.options.clickSkipNode; 
    11531153while(days>=0){ 
    1154 var _164=this.getLastWday(date); 
    1155 var _165=days+1; 
    1156 var _166=date.getDay(); 
    1157 var _167=date.advance({days:_165-1}); 
    1158 if(_167.getTime()>_164.getTime()){ 
    1159 _167=_164
    1160 _165=_167.days()-date.days()+1; 
    1161 } 
    1162 var _168=_167.getDay(); 
    1163 var _169=null; 
    1164 if(_166<=_168){ 
    1165 _169=$R(_166,_168,false); 
    1166 }else{ 
    1167 _169=$R(0,_168,false).toArray().concat($R(_166,_15d,false).toArray()); 
    1168 } 
    1169 var _16a=_169.findAll(function(day){ 
    1170 return _160.include(day); 
     1154var _165=this.getLastWday(date); 
     1155var _166=days+1;