jQuery 1.11.1 included in this module causing jQuery Once plugin to not working or unloaded. This resulted javascript error in user module, thus rendering other javascript not executed.

Proposed solution: removing jQuery 1.11.1 inclusion and add dependency to jquery_update module.

Comments

hidayat365 created an issue. See original summary.

giorgosk’s picture

Title: jQuery 1.11.1 causing jQuery Once plugin to not working » js related functionality stops working when module enabled
Status: Active » Needs review
StatusFileSize
new1.06 KB

Nothing javascript related works when this module is enabled

Uncaught TypeError: $context.find(...).once is not a function
    at Object.attach (autocomplete.js?owumbo:10)
    at Object.<anonymous> (drupal.js:76)
    at Function.each (jquery.min.js?v=1.12.4:2)
    at Object.Drupal.attachBehaviors (drupal.js:74)
    at HTMLDocument.<anonymous> (drupal.js:557)
    at i (jquery.min.js?v=1.12.4:2)
    at Object.fireWith [as resolveWith] (jquery.min.js?v=1.12.4:2)
    at Function.ready (jquery.min.js?v=1.12.4:2)
    at HTMLDocument.K (jquery.min.js?v=1.12.4:2)

as the previous poster mentions the jquery library should be included with the jquery_update module

here is patch that corrects this please review

hidayat365’s picture

Great! Patch work perfectly. It also noticed that this patch is included in version 2.0

Cheers.

samvel’s picture

StatusFileSize
new1.1 KB

Hi guys!

I see next problems in patch:
1) Not needed commented code
2) Why we have some ranaming of module?

See new patch

mayurjadhav’s picture

Status: Needs review » Reviewed & tested by the community