From c954d70e2f61919ad08bf11cbd27ec29ea96da26 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Mon, 13 Dec 2021 21:42:26 +0100 Subject: [PATCH] webconfig: Stop validating colors Now that we have modifiers and can have backgrounds and such, simply setting it as css style doesn't cut it. So let's stop validating for now, the worst that can happen is that the color isn't rendered. --- share/tools/web_config/js/controllers.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/share/tools/web_config/js/controllers.js b/share/tools/web_config/js/controllers.js index c93e0914a..bb74355d5 100644 --- a/share/tools/web_config/js/controllers.js +++ b/share/tools/web_config/js/controllers.js @@ -105,14 +105,12 @@ controllers.controller("colorsController", function($scope, $http) { var cols = []; for (var i in data) { - if (isValidColor(data[i].color)) { - currentScheme[data[i].name] = data[i].color; - // HACK: For some reason the colors array is cleared later - // So we cheesily encode the actual objects as colordata-, so we can send them. - // TODO: We should switch to keeping the objects, and also displaying them - // with underlines and such. - currentScheme["colordata-" + data[i].name] = data[i]; - } + currentScheme[data[i].name] = data[i].color; + // HACK: For some reason the colors array is cleared later + // So we cheesily encode the actual objects as colordata-, so we can send them. + // TODO: We should switch to keeping the objects, and also displaying them + // with underlines and such. + currentScheme["colordata-" + data[i].name] = data[i]; } $scope.colorSchemes.push(currentScheme); }