1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-27 20:10:18 +02:00

[ticket/11472] Make the color swatch configurable and fix it in subsilver2

PHPBB3-11472
This commit is contained in:
Cesar G
2013-10-18 21:23:53 -07:00
parent c386bf7911
commit 79b5e96896
6 changed files with 14 additions and 20 deletions

View File

@@ -346,7 +346,11 @@ function colorPalette(dir, width, height) {
(function($) {
$(document).ready(function() {
$('#color_palette_placeholder').each(function() {
$(this).html(colorPalette('h', 15, 12));
var orientation = $(this).attr('data-orientation'),
height = $(this).attr('data-height'),
width = $(this).attr('data-width');
$(this).html(colorPalette(orientation, width, height));
});
});
})(jQuery);