Publication Date "Between" option doesn't work if jQuery is enabled in the OAPC.

Bug #1739666 reported by Jason Boyer on 2017-12-21
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Eg 3.0.2

There are a couple of reasons that having jQuery enabled will cause this. One is that when using jQuery the $() function is redefined to return a jQ object. In jQ, you don't mess with className directly, you call addClass and removeClass, so the check for node.classname in the removeClass (simple.js) function immediately returns.

Unfortunately, changing our removeClass and addClass functions to use the jQuery version when jQuery is loaded doesn't work either. The class names aren't changed. Given that we don't use jQuery for anything special here yet the fix is to just turn it off.

Jason Boyer (jboyer) wrote :

It may not be a popular suggestion and I certainly don't want to see it used for anything like it was back in the JSPAC days, the simplest fix would be to just require jQuery and use it where we're currently using simple.js and it's cousins. (field validation would be simpler and more structured, for one.)

Kathy Lussier (klussier) wrote :

See also related bug 1732754. The opac spinner also doesn't work when jquery is enabled.

Changed in evergreen:
status: New → Confirmed
importance: Undecided → Medium
Kathy Lussier (klussier) wrote :

We found another instance where enabling jquery broke something in the catalog. The limit to available and group formats & editions checkboxes on the search results page sometimes do not work when you deselect them. See bug 1745190.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers