I am getting the following error:

commerce_pdm_product_form_reference.js?p2fuam:10 Uncaught ReferenceError: $table is not defined
    at commerce_pdm_product_form_reference.js?p2fuam:10
    at Object.attach (commerce_pdm_product_form_reference.js?p2fuam:250)
    at Object.<anonymous> (drupal.js?p2fuam:76)
    at Function.each (jquery.js?v=1.4.4:33)
    at Object.Drupal.attachBehaviors (drupal.js?p2fuam:74)
    at HTMLDocument.<anonymous> (drupal.js?p2fuam:557)
    at Function.ready (jquery.js?v=1.4.4:30)
    at HTMLDocument.u (jquery.js?v=1.4.4:38)

This is preventing the functionality from working as the onClick() events don't get registered.

Comments

John Cook created an issue. See original summary.

john cook’s picture

StatusFileSize
new1.6 KB

I've amended the script to explicitly define the required variables. This prevents the exception and allows the events to be registered.

john cook’s picture

Status: Active » Needs review
john cook’s picture

StatusFileSize
new2.7 KB
new1.3 KB

I discovered a couple more variables that had to be defined explicitly.

pravin ajaaz’s picture

Thanks for the patch. Will review it

  • Pravin Ajaaz committed 3753f67 on 7.x-1.x authored by John Cook
    Issue #2936191 by John Cook, Pravin Ajaaz: JavaScript creates "Uncaught...
pravin ajaaz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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