X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9d2f920feb9dce028b985e8d452538d3df7a1d9c..26b47fdd188d126bef2e5829d5cc460bad530e2a:/app/assets/javascripts/index.js?ds=inline diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 4ea643b26..4a8d8d917 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -334,6 +334,10 @@ $(document).ready(function () { }); } }); + + $('.colour-preview-box').each(function () { + $(this).css("background-color", $(this).data("colour")); + }); } page.unload = function() {