Revision: 2029
http://mrbs.svn.sourceforge.net/mrbs/?rev=2029&view=rev
Author: cimorrison
Date: 2011-09-29 19:09:09 +0000 (Thu, 29 Sep 2011)
Log Message:
-----------
Fixed bug to do with sorting columns introduced in Rev 2028
Improved sizing of fixed column width
Revision Links:
--------------
http://mrbs.svn.sourceforge.net/mrbs/?rev=2028&view=rev
Modified Paths:
--------------
mrbs/branches/datatables/web/Themes/default/header.inc
Modified: mrbs/branches/datatables/web/Themes/default/header.inc
===================================================================
--- mrbs/branches/datatables/web/Themes/default/header.inc 2011-09-29
16:49:23 UTC (rev 2028)
+++ mrbs/branches/datatables/web/Themes/default/header.inc 2011-09-29
19:09:09 UTC (rev 2029)
@@ -1564,16 +1564,19 @@
// (they have the Unix timestamp in the title of a span for sorting)
?>
tableOptions.aoColumnDefs = [{"bSearchable": false, "bVisible": false,
"aTargets": [ 0 ]},
- {"sType": "title-numeric", "aTargets": [2, 3,
4, -1]}];
+ {"sType": "title-numeric", "aTargets": [3, 4,
5, -1]}];
<?php
// Fix the left hand two columns. This has to be done when initialisation
is
// complete as the language files are loaded asynchronously
?>
tableOptions.fnInitComplete = function(){
+ var tableWidth = $('#report_table').outerWidth();
+ var leftWidth = $('#report_table th:first-child').outerWidth();
+ leftWidth = Math.min(leftWidth, tableWidth/3);
var oFC = new FixedColumns(reportTable, {"iLeftColumns": 1,
- "iLeftWidth": 20,
- "sLeftWidth": "relative"});
+ "iLeftWidth": leftWidth,
+ "sLeftWidth": "fixed"});
$('.js div.datatable_container').css('visibility', 'visible');
<?php
// Also add a "Delete entries button", provided that (a) the user is an
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