Here is the console message in Chrome,

Uncaught TypeError: Object #<Object> has no method 'on' jquery.formalize.min.js:1

See screenshot below for an example of the issue.

Comments

matt v.’s picture

This appears to be an issue with the 1.4.4 version of jQuery that comes with Drupal 7 by default. I tested that theory by adding the latest 7.x-2.3-alpha1 version of the jQuery Update module. That most recent version of the module allows you to choose between multiple versions of jQuery. Switching to jQuery 1.5.1 did not make the error go away, but jQuery 1.7.7 and 1.8.2 did.

In my experience, adding jQuery update introduces some problems of its own. An alternative would be to work with the Formalize project to help make Formalize backwards compatible. Another (possibly less ideal) option would be to see if earlier versions of Formalize might work.

matt v.’s picture

It looks like the issue stems from the fact that the on() method was added in jQuery 1.7.

I went ahead posted a request in the Formalize issue queue to see about the possibility of making Formalize backwards compatible.

ryanrain’s picture

theming of the exposed filters on the commons_homepage_content view also break without jquery update. http://drupal.org/node/1897998

ezra-g’s picture

Can folks identify a specific reason not to simply restore jQuery update and run 1.7.7?

matt v.’s picture

I recently ran into issues with Views on a non-Commons site where I was testing out the jQuery Update module. Looking through the Views issue queue now, some of those issues may have been worked through, but apparently not all of them. The Panels UI seems to have similar issues.

That said, using jQuery Update may still be the prudent thing to do.

ay13’s picture

Status: Active » Fixed

i updated the formalize js and pushed to the commons origins theme. the problem should be fixed now, re-open if it is not.

ezra-g’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Nathan Smith’s picture

Okay, I've added a separate "jquery.formalize.legacy.js" file that's compatible with jQuery 1.4.4…

https://github.com/nathansmith/formalize/blob/master/assets/js/jquery.fo...

ryanrain’s picture

Status: Closed (fixed) » Active

it looks like nathan's work still needs to be committed to the theme. i'm seeing this error abort theme js in ie9.

Zarabadoo’s picture

Status: Active » Fixed

Or buttons are a bit too stylized to work completely with Formalize, and it provided a bunch of legacy support for other browsers that are not supported. So i have rolled in what works (with attribution) and removed the parts that were excessive for this theme's needs. This was all done in the button rework in #1954406.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.