[Bug 10102] New: don't show empty novelist tab if no data
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10102 Bug ID: 10102 Summary: don't show empty novelist tab if no data Classification: Unclassified Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: nengard@gmail.com If you're using Novelist and have the data showing in a tab you see an empty tab for items not found in Novelist - videos specifically. The tab should be hidden if empty. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10102 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nick@bywatersolutions.com --- Comment #1 from Nick Clemens <nick@bywatersolutions.com> --- Tricky with the fact that Novelist is all js and loaded after the page, but adding the below to OPACUserJS seems to accomplish it. Something cleaner would be nice but this works as a quick fix: $(window).load(function(){ if( !$('#NovelistSelect').find('img').length ){ $("a[href=#NovelistSelect]").remove(); $("#NovelistSelect").remove(); } }); -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10102 Heather Braum <hbraum@nekls.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hbraum@nekls.org -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org