Revision: 1868
http://mrbs.svn.sourceforge.net/mrbs/?rev=1868&view=rev
Author: cimorrison
Date: 2011-08-18 15:27:09 +0000 (Thu, 18 Aug 2011)
Log Message:
-----------
Changed intial ordering of columns so that it goes "Action - Name - Rights" and
not "Action - Rights - Name"
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-08-17
17:00:08 UTC (rev 1867)
+++ mrbs/branches/datatables/web/Themes/default/header.inc 2011-08-18
15:27:09 UTC (rev 1868)
@@ -954,6 +954,17 @@
// Turn the table into a datatable
?>
var dataTablesOptions = $.extend({}, dataTablesDefaults);
+ <?php
+ // Set the initial order of columns (we want it to go
+ // "Action - Name - Rights" and not "Action - Rights - Name"
+ ?>
+ var nColumns = $('#users_table tr:first th').length;
+ dataTablesOptions.oColReorder = new Object();
+ dataTablesOptions.oColReorder.aiOrder = [0, 2, 1];
+ for (var i=3; i < nColumns; i++)
+ {
+ dataTablesOptions.oColReorder.aiOrder.push(i);
+ }
$('#users_table').dataTable(dataTablesOptions);
<?php
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits