Commit fb871486 authored by GeduR's avatar GeduR Committed by targoo

Issue #2387733 by GeduR: unnecessary global variables in color_field.query.js

parent e614befa
......@@ -6,8 +6,8 @@
Drupal.behaviors.color_field = {
attach: function (context) {
$.each(Drupal.settings.color_field, function (selector) {
id = selector.replace("#div","edit");
value = $('#' + id).val();
var id = selector.replace("#div","edit");
var value = $('#' + id).val();
if (value == '') value = this.value;
$(selector).empty().addColorPicker({
currentColor:value,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment