From: David ‘Bombe’ Roden Date: Mon, 22 Nov 2010 05:40:28 +0000 (+0100) Subject: Use a comma to separate the identities in the tooltips. X-Git-Tag: 0.3.1-RC1~51 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=51cdfee0b350955d9f858adb892f18b2a4fa8ab4;p=Sone.git Use a comma to separate the identities in the tooltips. --- diff --git a/src/main/java/net/pterodactylus/sone/template/CollectionAccessor.java b/src/main/java/net/pterodactylus/sone/template/CollectionAccessor.java index 2b91592..10e3ea3 100644 --- a/src/main/java/net/pterodactylus/sone/template/CollectionAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/CollectionAccessor.java @@ -61,7 +61,7 @@ public class CollectionAccessor extends ReflectionAccessor { StringBuilder soneNames = new StringBuilder(); for (Sone sone : sones) { if (soneNames.length() > 0) { - soneNames.append('\n'); + soneNames.append(", "); } soneNames.append(SoneAccessor.getNiceName(sone)); } diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index b8be6b3..149520f 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -282,7 +282,7 @@ function generateSoneList(sones) { var soneList = ""; $.each(sones, function() { if (soneList != "") { - soneList += "\n"; + soneList += ", "; } soneList += this.name; });