Author: pyaschenko
Date: 2008-07-15 11:51:59 -0400 (Tue, 15 Jul 2008)
New Revision: 9617
Modified:
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
http://jira.jboss.com/jira/browse/RF-3846
Modified:
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
---
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2008-07-15
15:46:53 UTC (rev 9616)
+++
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2008-07-15
15:51:59 UTC (rev 9617)
@@ -661,7 +661,9 @@
this.isVisible = false;
}
- var htmlTextHeader = '<table id="'+this.id+'"
border="0" cellpadding="0" cellspacing="0"
class="rich-calendar-exterior rich-calendar-popup'+(this.params.className ? '
'+this.params.className : '')+'"
style="'+popupStyles+this.params.style+'"><tbody>\n';
+ var tempStr = "$('"+this.id+"').component.";
+
+ var htmlTextHeader = '<table id="'+this.id+'"
border="0" cellpadding="0" cellspacing="0"
class="rich-calendar-exterior rich-calendar-popup'+(this.params.className ? '
'+this.params.className : '')+'"
style="'+popupStyles+this.params.style+'"
onclick="'+tempStr+'skipEventOnCollapse=true;"><tbody>\n';
var colspan = (this.params.showWeeksBar ? "8" : "7");
var htmlHeaderOptional = (this.params.optionalHeaderMarkup) ? '<tr><td
class="rich-calendar-header-optional" colspan="'+colspan+'"
id="'+this.id+'HeaderOptional"></td></tr>' :
'';
var htmlFooterOptional = (this.params.optionalFooterMarkup) ? '<tr><td
class="rich-calendar-footer-optional" colspan="'+colspan+'"
id="'+this.id+'FooterOptional"></td></tr>' :
'';
@@ -675,7 +677,6 @@
var bottomStyleClass;
var htmlTextWeekDayBar='';
var context;
- var tempStr = "$('"+this.id+"').component.";
var eventsStr = 'onclick="'+tempStr+'eventCellOnClick(event,
this);" onmouseover="'+tempStr+'eventCellOnMouseOver(event, this);"
onmouseout="'+tempStr+'eventCellOnMouseOut(event, this);"';
if (this.params.showWeekDaysBar)
{