Id and value variables are global, this variables could override other javascript variables, as this is not needed attaching a patch to make this variables local.

file: color_field.query.js

 id = selector.replace("#div","edit");
 value = $('#' + id).val();

to

  var id = selector.replace("#div","edit");
  var value = $('#' + id).val();
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

  • targoo committed fb87148 on 7.x-1.x authored by GeduR
    Issue #2387733 by GeduR: unnecessary global variables in color_field....

  • targoo committed fb87148 on 7.x-2.x authored by GeduR
    Issue #2387733 by GeduR: unnecessary global variables in color_field....
targoo’s picture

Status: Needs review » Fixed
targoo’s picture

Status: Fixed » Closed (fixed)

fixed in 7.x-1.7