Skip to content
Snippets Groups Projects
Commit 41f539bd authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #693504 by sun: clean-up.

parent 192cb2cf
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -3,7 +3,7 @@
Drupal.behaviors.color = {
attach: function (context, settings) {
var i, colors, field_name;
var i, j, colors, field_name;
// This behavior attaches by ID, so is only valid once on a page.
var form = $('#system-theme-settings .color-form', context).once('color');
if (form.length == 0) {
......@@ -149,7 +149,7 @@ Drupal.behaviors.color = {
* Callback for Farbtastic when a new color is chosen.
*/
function callback(input, color, propagate, colorScheme) {
var i, j, matched;
var matched;
// Set background/foreground colors.
$(input).css({
backgroundColor: color,
......@@ -183,7 +183,6 @@ Drupal.behaviors.color = {
resetScheme();
}
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment