Summary: | don't show empty novelist tab if no data | ||
---|---|---|---|
Product: | Koha | Reporter: | Nicole C. Engard <nengard> |
Component: | OPAC | Assignee: | Owen Leonard <oleonard> |
Status: | CLOSED FIXED | QA Contact: | |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | george, nick, triciab |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
Description
Nicole C. Engard
2013-04-23 15:24:51 UTC
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(); } }); Nick- Sorry ignore my comment. Having browser problems. Tricia B. In my tests this has been resolved--presumably on the Novelist side of things. If anyone finds otherwise please re-open with additional details. |