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

Bug #1739666 reported by Jason Boyer
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Confirmed
Medium
Unassigned

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.

Tags: opac jquery
Revision history for this message
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.)

Revision history for this message
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
Revision history for this message
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.

tags: added: jquery
Revision history for this message
Garry Collum (gcollum) wrote :

No longer an issue in the Bootstrap opac.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.