[Rt-commit] r20016 - in rt/3.8/trunk/share/html: NoAuth/css/web2
elacour at bestpractical.com
elacour at bestpractical.com
Thu Jun 18 06:50:14 EDT 2009
Author: elacour
Date: Thu Jun 18 06:48:36 2009
New Revision: 20016
Modified:
rt/3.8/trunk/share/html/Helpers/CalPopup.html
rt/3.8/trunk/share/html/NoAuth/css/web2/misc.css
Log:
Highlight "today" in calendar popup (closes: #12918).
Modified: rt/3.8/trunk/share/html/Helpers/CalPopup.html
==============================================================================
--- rt/3.8/trunk/share/html/Helpers/CalPopup.html (original)
+++ rt/3.8/trunk/share/html/Helpers/CalPopup.html Thu Jun 18 06:48:36 2009
@@ -70,7 +70,11 @@
<td>
% if ($day) {
% my $datestr = sprintf('%04d-%02d-%02d', $DisplayedYear, $DisplayedMonth, $day);
- <a href="#" onclick="updateParentField('<% $field %>','<% $datestr %>'); return false;"><% $day %></a>
+% my $class;
+% if ( ( $DisplayedYear == $today[5] + 1900 ) && ( $DisplayedMonth == $today[4] + 1 ) && ( $day == $today[3] ) ) {
+% $class = 'today';
+% }
+ <a <% $class && 'class="'.$class.'"' |n%> href="#" onclick="updateParentField('<% $field %>','<% $datestr %>'); return false;"><% $day %></a>
% } else {
% }
Modified: rt/3.8/trunk/share/html/NoAuth/css/web2/misc.css
==============================================================================
--- rt/3.8/trunk/share/html/NoAuth/css/web2/misc.css (original)
+++ rt/3.8/trunk/share/html/NoAuth/css/web2/misc.css Thu Jun 18 06:48:36 2009
@@ -50,6 +50,11 @@
margin-top: 1em;
}
+#body.calpopup a.today {
+ font-size: 1em;
+ font-weight: bold;
+}
+
#body.calpopup a {
font-size: 0.8em;
}
More information about the Rt-commit
mailing list