Revision: 1948
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1948&view=rev
Author:   cimorrison
Date:     2011-09-12 14:50:18 +0000 (Mon, 12 Sep 2011)
Log Message:
-----------
Pending table partially turned into a datatable.   Commit prior to a merge

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-12 
14:49:20 UTC (rev 1947)
+++ mrbs/branches/datatables/web/Themes/default/header.inc      2011-09-12 
14:50:18 UTC (rev 1948)
@@ -143,7 +143,7 @@
     
     <?php
     // dataTables initialisation
-    if (in_array($page, array('admin', 'edit_users', 'report')))
+    if (in_array($page, array('admin', 'edit_users', 'pending', 'report')))
     {
       // Include the JavaScript for those pages that use dataTables
       ?>
@@ -1270,9 +1270,33 @@
   // PENDING.PHP
   if ($page == 'pending')
   {
+    // (1) activate the sub tables
+    // (2) turn the table into a datatable
     ?>
     activate_sub_tables();
+    
+    var tableOptions = new Object();
+    <?php 
+    // Fix the left hand column.  This has to be done when 
+    // initialisation is complete as the language files are loaded
+    // asynchronously
+    ?>
+    tableOptions.fnInitComplete = function(){
+        new FixedColumns(pendingTable, {"iLeftColumns": 1,
+                                      "iLeftWidth": 30,
+                                      "sLeftWidth": "fixed"});
+      };
     <?php
+    // Remove the first column from the column visibility
+    // list because it is fixed
+    ?>
+    tableOptions.oColVis = {aiExclude: [0]};
+    <?php
+    // and stop the first column being reordered
+    ?>
+    tableOptions.oColReorder = {"iFixedColumns": 1};
+    var pendingTable = makeDataTable('#pending_list', tableOptions);
+    <?php
   }
 
   // REPORT.PHP

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to