]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Smaller colour preview boxes
[rails.git] / app / assets / javascripts / index.js
index 4ea643b261e68b676ae640c9e01cc9e24ba48449..b6fdaea398b4c5718d105c396efb2bc2d539b115 100644 (file)
@@ -334,6 +334,11 @@ $(document).ready(function () {
           });
         }
       });
+      
+      $('.colour-preview-box').each(function (index, value) {
+        console.log($(this));
+        $(this).css("background-color", $(this).data("colour"));
+      });
     }
 
     page.unload = function() {