mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11275] Do not use spacer.gif in color picker
PHPBB3-11275
This commit is contained in:
parent
fafbce8124
commit
2387e7eb41
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue