diff --git a/charts_color.js b/charts_color.js index 1e66e552b8cb3dfe0c0d5ea0b27050b786074727..f61e08dcfa604a169934f28b8155f1ff52cd39ed 100644 --- a/charts_color.js +++ b/charts_color.js @@ -6,9 +6,9 @@ */ Drupal.behaviors.chartsColor = function (context) { var chartsColor = function() { - var colors = $("#edit-color-color-palettes").val().split(","); + var colors = $("#edit-color-color-palette").val().split(","); var series = ["background", "text", 0, 1, 2, 3, 4, 5, 6, 7]; - var disabled = ($("#edit-color-color-palettes").children("option:selected").text() == Drupal.settings.chartsColorCustom); + var disabled = ($("#edit-color-color-palette").children("option:selected").text() == Drupal.settings.chartsColorCustom); for (var s = 0, len = series.length; s < len; ++s) { if (colors[s]) { $("#edit-color-"+ series[s]).val(colors[s]); @@ -22,6 +22,6 @@ Drupal.behaviors.chartsColor = function (context) { } }; - $("#edit-color-color-palettes").change(chartsColor); + $("#edit-color-color-palette").change(chartsColor); chartsColor(); };