This feature was requested recently, and does make sense - especially as the
number of tables in a project increases.
The following enhancement is also fully compatible with the "Control export
options via userpriv.php" tip that I submitted previously
(viewtopic.php?f=18&t=45378).
As before, avoid confusion by edit the userpriv.php file from the bottom
up...
So, start by opening userpriv.php in the root folder:
1) Locate this line of code:
<?php include_once "footer.php"; ?>
...and insert the following code block immediately before it:
<?php if (!$user_groups->isExport()) { ?>
<scr ipt>
loadjs.ready("fixedheadertable", function() {
ew.fixedHeaderTable({
delay: 0,
scrollbars: false,
container: "gmp_user_groups",
width: "",
height: ""
});
});
</scr ipt>
<?php } ?>
2) Next, locate this block of code (just a few lines above the block you
just added):
loadjs.ready("load", function() {
// Startup script
...and edit as follows:
loadjs.ready("load", function() {
// Apply fixed header style to table
$('table').addClass('ew-table table-head-fixed
ew-fixed-header-table');
// Startup script
3) Now locate this block of code (somewhere around line 50 in the file):
loadjs.ready("head", function() {
// Client script
...and insert the following code block immediately before it:
ew.ready("head", "js/ewfixedheadertable.js", "fixedheadertable");
</scr ipt>
<scr ipt>
4) Save the edited version (and make a copy in case it ever gets
overwritten)
Finally:
1) ensure that the "Fixed Header Table" extension is enabled under Tools >
Extensions (no tables need to be selected under the extension's Advanced
settings)
2) click "Generate" after ensuring that both userpriv rows are unchecked (or
you'll overwrite the file(s) you modified!)
...and that's it!
Log in to your site as Admin and open a Permissions page - as you scroll
down the page, the table header will stay in focus.