[richfaces-svn-commits] JBoss Rich Faces SVN: r2530 - in trunk/ui/calendar: src/main/resources/org/richfaces/renderkit/html/scripts and 1 other directory.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Tue Aug 28 08:24:53 EDT 2007
Author: akushunin
Date: 2007-08-28 08:24:53 -0400 (Tue, 28 Aug 2007)
New Revision: 2530
Modified:
trunk/ui/calendar/design/calendar-js/calendar-xhtml.html
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
some fixes after classes refactoring
Modified: trunk/ui/calendar/design/calendar-js/calendar-xhtml.html
===================================================================
--- trunk/ui/calendar/design/calendar-js/calendar-xhtml.html 2007-08-28 12:05:35 UTC (rev 2529)
+++ trunk/ui/calendar/design/calendar-js/calendar-xhtml.html 2007-08-28 12:24:53 UTC (rev 2530)
@@ -8,33 +8,33 @@
<meta http-equiv="Content-Type" content="text/xhtml" />
<style type="text/css">
-.rich-Dayclass {
+.Dayclass {
color: #000000;
font-weight:bold;
}
-.rich-Weekendclass {
+.Weekendclass {
color:#800000;
font-weight:bold;
}
-.rich-Commonrich-Dayclass {
+.Commondayclass {
color: #000080;
}
-.rich-Hoveredrich-Dayclass {
+.Hovereddayclass {
color:red;
}
-.rich-Weekendrich-Dayclass {
+.Weekenddayclass {
color:#800000;
}
-.rich-Hoveredweekclass {
+.Hoveredweekclass {
color:red;
}
-.rich-Disabledrich-Dayclass {
+.Disableddayclass {
color:gray;
}
-.rich-Torich-Dayclass {
+.Todayclass {
background-color: #f0f0f0;
}
-.rich-Selectedrich-Dayclass {
+.Selecteddayclass {
background-color: #f08080;
}
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 2007-08-28 12:05:35 UTC (rev 2529)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-08-28 12:24:53 UTC (rev 2530)
@@ -733,9 +733,9 @@
{
this.selectedDate=new Date(this.currentDate);
this.selectedDate.setDate(obj.data);
- if (this.selectedDateElement) Element.removeClassName(this.selectedDateElement, "rich-Selected Dayclass");
+ if (this.selectedDateElement) Element.removeClassName(this.selectedDateElement, "Selecteddayclass");
this.selectedDateElement = obj;
- Element.addClassName(obj, "rich-Selected Dayclass");
+ Element.addClassName(obj, "Selecteddayclass");
$(this.INPUT_DATE_ID).value=this.getSelectedDateString(this.params.datePattern);
this.renderHeader();
@@ -920,7 +920,7 @@
//var _d=new Date();
if (this.selectedDateElement) {
- Element.classNames(this.selectedDateElement).remove("rich-Selected Dayclass");
+ Element.classNames(this.selectedDateElement).remove("Selecteddayclass");
this.selectedDateElement = null;
}
@@ -980,7 +980,7 @@
if (selectedflag && dataobj._month==0 && dataobj.day==selecteddate) {
this.selectedDateElement = element;
- e.add("rich-Selected Dayclass");
+ e.add("Selecteddayclass");
}
this.setCellEvents(element);
@@ -1133,7 +1133,7 @@
}
else
{
- if (this.selectedDateElement) Element.removeClassName(this.selectedDateElement, "rich-Selected Dayclass");
+ if (this.selectedDateElement) Element.removeClassName(this.selectedDateElement, "Selecteddayclass");
if (oldSelectedDate!=null) if (noUpdate) this.render(); else this.onUpdate();
this.today(noUpdate);
}
More information about the richfaces-svn-commits
mailing list