Revision: 1975
http://mrbs.svn.sourceforge.net/mrbs/?rev=1975&view=rev
Author: cimorrison
Date: 2011-09-21 14:39:02 +0000 (Wed, 21 Sep 2011)
Log Message:
-----------
Prevented column reordering being used when there's an Ajax data source.
(This is a limitation in the current release of DataTables because if a column
is reordered DataTables doesn't realise that the data is still coming in the
original order. May be fixed in a future release).
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-21
14:05:51 UTC (rev 1974)
+++ mrbs/branches/datatables/web/Themes/default/header.inc 2011-09-21
14:39:02 UTC (rev 1975)
@@ -224,7 +224,13 @@
defaultOptions.bProcessing = true;
defaultOptions.bScrollCollapse = true;
defaultOptions.bStateSave = true;
- defaultOptions.sDom = 'RC<"clear">lfrtip';
+ <?php
+ // If we're using an Ajax data source then don't offer 'R' (column
reordering).
+ // This is a problem at the moment in DataTables because if you
reorder a column
+ // DataTables doesn't know that the Ajax data is still in the
original order.
+ // May be fixed in a future release of DataTables
+ ?>
+ defaultOptions.sDom = (specificOptions.sAjaxSource) ?
'C<"clear">lfrtip' : 'RC<"clear">lfrtip';
defaultOptions.sScrollX = "100%";
defaultOptions.sPaginationType = "full_numbers";
defaultOptions.oColVis = {sSize: "css",
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