projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
š fix
[Sone.git]
/
src
/
main
/
resources
/
static
/
javascript
/
sone.js
diff --git
a/src/main/resources/static/javascript/sone.js
b/src/main/resources/static/javascript/sone.js
index
23c7fff
..
3e50ee2
100644
(file)
--- a/
src/main/resources/static/javascript/sone.js
+++ b/
src/main/resources/static/javascript/sone.js
@@
-297,21
+297,14
@@
function getMenuSone(element) {
/**
* Generates a list of Sones by concatening the names of the given sones with a
/**
* Generates a list of Sones by concatening the names of the given sones with a
- *
new line character (ā\nā)
.
+ *
comma
.
*
* @param sones
* The sones to format
* @returns {String} The created string
*/
function generateSoneList(sones) {
*
* @param sones
* The sones to format
* @returns {String} The created string
*/
function generateSoneList(sones) {
- var soneList = "";
- $.each(sones, function() {
- if (soneList != "") {
- soneList += ", ";
- }
- soneList += this.name;
- });
- return soneList;
+ return sones.map(sone => sone.name).join(", ")
}
/**
}
/**