rearrange border colors for #1316

This commit is contained in:
Toks
2013-05-05 13:39:00 -04:00
parent b6b3f24823
commit 4fe75a5e5d

View File

@@ -218,9 +218,9 @@
if (border_colors.length > 1) {
$img.css("border", "2px solid");
if (border_colors.length === 3) {
$img.css("border-color", border_colors[0] + " " + border_colors[2] + " " + border_colors[1]);
$img.css("border-color", border_colors[0] + " " + border_colors[2] + " " + border_colors[2] + " " + border_colors[1]);
} else if (border_colors.length === 2) {
$img.css("border-color", border_colors[0] + " " + border_colors[1]);
$img.css("border-color", border_colors[0] + " " + border_colors[1] + " " + border_colors[1] + " " + border_colors[0]);
}
}
}