Publication Date "Between" option doesn't work if jQuery is enabled in the OAPC.
Bug #1739666 reported by
Jason Boyer
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: | added: jquery |
To post a comment you must log in.
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.)