[Koha-bugs] [Bug 29295] Page specific jQuery

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Dec 18 10:27:52 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29295

Fridolin Somers <fridolin.somers at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fridolin.somers at biblibre.co
                   |                            |m

--- Comment #1 from Fridolin Somers <fridolin.somers at biblibre.com> ---
You mean JQuery code added in IntranetUserJS or OPACUserJS ?

Each page as an id in the body.
For example :
<body id="main_intranet-main" class="intranet-main">

So you can create a code loaded just for that page with :
  if ( $("body#main_intranet-main").length > 0 ) {

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


More information about the Koha-bugs mailing list