[ticket/11275] Do not use spacer.gif in color picker

PHPBB3-11275
This commit is contained in:
Vjacheslav Trushkin 2013-04-12 16:42:36 +03:00
parent fafbce8124
commit 2387e7eb41

View file

@ -326,7 +326,7 @@ function colorPalette(dir, width, height) {
for (b = 0; b < 5; b++) { for (b = 0; b < 5; b++) {
color = String(numberList[r]) + String(numberList[g]) + String(numberList[b]); color = String(numberList[r]) + String(numberList[g]) + String(numberList[b]);
html += '<td bgcolor="#' + color + '" style="width: ' + width + 'px; height: ' + height + 'px;">'; html += '<td bgcolor="#' + color + '" style="width: ' + width + 'px; height: ' + height + 'px;">';
html += '<a href="#" onclick="bbfontstyle(\'[color=#' + color + ']\', \'[/color]\'); return false;"><img src="images/spacer.gif" width="' + width + '" height="' + height + '" alt="#' + color + '" title="#' + color + '" /></a>'; html += '<a href="#" onclick="bbfontstyle(\'[color=#' + color + ']\', \'[/color]\'); return false;" style="display: block; width: ' + width + 'px; height: ' + height + 'px; " alt="#' + color + '" title="#' + color + '"></a>';
html += '</td>'; html += '</td>';
} }
@ -346,7 +346,7 @@ function colorPalette(dir, width, height) {
(function($) { (function($) {
$(document).ready(function() { $(document).ready(function() {
$('#color_palette_placeholder').each(function() { $('#color_palette_placeholder').each(function() {
$(this).html(colorPalette('h', 15, 10)); $(this).html(colorPalette('h', 15, 12));
}); });
}); });
})(jQuery); })(jQuery);