[Koha-bugs] [Bug 10102] don't show empty novelist tab if no data

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Nov 18 18:13:33 CET 2015


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

Nick Clemens <nick at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick at bywatersolutions.com

--- Comment #1 from Nick Clemens <nick at 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.


More information about the Koha-bugs mailing list