IMAGINARY / imaginary-web

Imaginary website (Drupal 7)
GNU General Public License v2.0
3 stars 0 forks source link

Javascript error trying to remove file attached to node #126

Closed elondaits closed 8 years ago

elondaits commented 8 years ago

When trying to remove an attached file at http://imaginary.org/node/1014/edit there is a javascript error that prevents the operation from completing:

Uncaught TypeError: b.handleError is not a function

According to the interwebs it's due to updating jQuery to a version > 1.5 but keeping jQuery.form at an old version.

elondaits commented 8 years ago

Fixed in f18400261458e12d774baba5992df3c076daf82f

I switched jQuery from our own version provided in the imaginary theme to the jquery_update module. The advantage of using the module is that it also updates jQuery plugins, like jQuery.form, to appropriate versions. Doing the switch I also took advantage of the ability jquery_update provides of loading jQuery from a CDN, which takes a little load off the server and could make the site faster.