added comma between names
This commit is contained in:
parent
620d44fb03
commit
31ad1cbcaf
3 changed files with 14 additions and 22 deletions
|
@ -148,22 +148,6 @@ p {
|
|||
margin-left: 62px;
|
||||
}
|
||||
|
||||
li .name:first-child {
|
||||
margin-left: -3px;
|
||||
}
|
||||
|
||||
.name {
|
||||
background: #d8dfea;
|
||||
font-weight: normal;
|
||||
padding: 0 3px 2px 3px;
|
||||
border-radius: 5px;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
li:hover .name {
|
||||
background: #b8c1d0;
|
||||
}
|
||||
|
||||
.is_private {
|
||||
color: white;
|
||||
padding: 0 4px 0 2px;
|
||||
|
@ -173,7 +157,6 @@ li:hover .name {
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
li .date {
|
||||
position: absolute;
|
||||
top: -1.8em;
|
||||
|
|
|
@ -665,12 +665,21 @@ function(jQuery, Paths, URI, HostApp, Cache) {
|
|||
+ "</a>"
|
||||
);
|
||||
|
||||
// adding show profile on click
|
||||
node.innerHTML = new_text;
|
||||
$(node).find("a.name").click(function(e) {
|
||||
HostApp.showProfileForEntity(e.target.title);
|
||||
return false;
|
||||
});
|
||||
|
||||
// adding comma between names when there is only
|
||||
// a space in between.
|
||||
var names = $(node).find("a.name");
|
||||
names.each(function(i) {
|
||||
if(this.nextSibling && $(this.nextSibling.nextSibling).hasClass("name") && this.nextSibling.nodeValue == " " ) {
|
||||
$(this).after(",")
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue