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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | interdiff-2936191-2-4.txt | 1.3 KB | john cook |
| #4 | 2936191-4.patch | 2.7 KB | john cook |
| #2 | 2936191-2.patch | 1.6 KB | john cook |
Comments
Comment #2
john cook commentedI've amended the script to explicitly define the required variables. This prevents the exception and allows the events to be registered.
Comment #3
john cook commentedComment #4
john cook commentedI discovered a couple more variables that had to be defined explicitly.
Comment #5
pravin ajaaz commentedThanks for the patch. Will review it
Comment #7
pravin ajaaz commented