Revision: 2597
https://sourceforge.net/p/mrbs/code/2597/
Author: tbleher
Date: 2012-12-16 14:12:44 +0000 (Sun, 16 Dec 2012)
Log Message:
-----------
Make clipping of bookings in month view configurable via $clipped_month.
Modified Paths:
--------------
mrbs/trunk/web/css/mrbs.css.php
mrbs/trunk/web/systemdefaults.inc.php
Modified: mrbs/trunk/web/css/mrbs.css.php
===================================================================
--- mrbs/trunk/web/css/mrbs.css.php 2012-12-16 14:11:26 UTC (rev 2596)
+++ mrbs/trunk/web/css/mrbs.css.php 2012-12-16 14:12:44 UTC (rev 2597)
@@ -260,7 +260,10 @@
foreach ($color_types as $type => $col)
{
echo "td.$type {background-color: $col}\n"; // used in the day and
week views
- echo ".month div.$type {float: left; max-height: 1.3em; height: 1.3em;
min-height: 1.3em; overflow: hidden; background-color: $col}\n"; // used in
the month view
+ if( $clipped_month )
+ echo ".month div.$type {float: left; max-height: 1.3em; height: 1.3em;
min-height: 1.3em; overflow: hidden; background-color: $col}\n"; // used in
the month viewa
+ else
+ echo ".month div.$type {float: left; min-height: 1.3em; overflow: hidden;
background-color: $col}\n"; // used in the month view
}
?>
Modified: mrbs/trunk/web/systemdefaults.inc.php
===================================================================
--- mrbs/trunk/web/systemdefaults.inc.php 2012-12-16 14:11:26 UTC (rev
2596)
+++ mrbs/trunk/web/systemdefaults.inc.php 2012-12-16 14:12:44 UTC (rev
2597)
@@ -398,7 +398,12 @@
// (FALSE not supported in IE6 and IE7 due to their incomplete CSS support)
$clipped = TRUE;
-// Define clipping behaviour for the cells in the month view.
+// Define clipping behaviour for the cells in the month view.
+// Set to TRUE if you want all entries to have the same height. The
+// short description may be clipped in this case. If set to FALSE,
+// each booking entry will be large enough to display all information.
+$clipped_month = TRUE;
+
// Set to TRUE if you want the cells in the month view to scroll if there are
too
// many bookings to display; set to FALSE if you want the table cell to expand
to
// accommodate the bookings. (NOTE: (1) scrolling doesn't work in IE6 and so
the table
@@ -1078,4 +1083,4 @@
// Default description for new bookings
$default_description = "";
-?>
\ No newline at end of file
+?>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits