Revision: 2031
http://mrbs.svn.sourceforge.net/mrbs/?rev=2031&view=rev
Author: cimorrison
Date: 2011-09-29 19:58:10 +0000 (Thu, 29 Sep 2011)
Log Message:
-----------
Added the text of the fixed column as a title tooltip
Modified Paths:
--------------
mrbs/branches/datatables/web/Themes/default/header.inc
mrbs/branches/datatables/web/report.php
Modified: mrbs/branches/datatables/web/Themes/default/header.inc
===================================================================
--- mrbs/branches/datatables/web/Themes/default/header.inc 2011-09-29
19:31:01 UTC (rev 2030)
+++ mrbs/branches/datatables/web/Themes/default/header.inc 2011-09-29
19:58:10 UTC (rev 2031)
@@ -1567,10 +1567,16 @@
{"sType": "title-numeric", "aTargets": [3, 4,
5, -1]}];
<?php
- // Fix the left hand two columns. This has to be done when initialisation
is
+ // Fix the left hand column. This has to be done when initialisation is
// complete as the language files are loaded asynchronously
?>
tableOptions.fnInitComplete = function(){
+ <?php
+ // Try and get a sensible value for the fixed column width, which is
the
+ // smaller of the actual column width and a proportion of the overall
table
+ // width. (Unfortunately the actual column width is just the width
of the
+ // column on the first page)
+ ?>
var tableWidth = $('#report_table').outerWidth();
var leftWidth = $('#report_table th:first-child').outerWidth();
leftWidth = Math.min(leftWidth, tableWidth/3);
Modified: mrbs/branches/datatables/web/report.php
===================================================================
--- mrbs/branches/datatables/web/report.php 2011-09-29 19:31:01 UTC (rev
2030)
+++ mrbs/branches/datatables/web/report.php 2011-09-29 19:58:10 UTC (rev
2031)
@@ -197,7 +197,15 @@
$values = array();
// Booking name
- $values[] = ($output_as_csv) ? escape($row['name']) : "<a
href=\"view_entry.php?id=".$row['id']."\">" . htmlspecialchars($row['name']) .
"</a>";
+ if ($output_as_csv)
+ {
+ $values[] = escape($row['name']);
+ }
+ else
+ {
+ $html_name = htmlspecialchars($row['name']);
+ $values[] = "<a href=\"view_entry.php?id=" . $row['id'] . "\"
title=\"$html_name\">$html_name</a>";
+ }
// Area
$values[] = escape($row['area_name']);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits