[Koha-bugs] [Bug 4819] Add ID attribute to certain areas of OPAC so jquery can be used to hide them

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 23 14:52:29 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4819

--- Comment #8 from Owen Leonard <oleonard at myacpl.org> ---
This change allows us to use some variation on the following JavaScript:
----
// Hide the "date due" column

// identify the header for the column we're hiding

var th = $("#item_datedue");

// Get the index of the header cell

var ind = $("#holdingst th").index(th);

// Indexes are zero-based but ":nth-child" starts at one, so increment

ind++;

// Hide the table header

$(th).hide();

// Hide each table cell within the holdings table which has the same
// index as the header cell we identified

$('#holdingst td:nth-child('+ind+')').hide();
----
Place that JS inside a $(document).ready() block in your OPACUserJS system
preference to automatically hide the specified column in the OPAC.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list