Skip to content

Commit

Permalink
Show more link in the quick compose.
Browse files Browse the repository at this point in the history
  • Loading branch information
protz committed May 31, 2012
1 parent 3277b3c commit f1dd70e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
11 changes: 10 additions & 1 deletion content/stub.xhtml
Expand Up @@ -599,9 +599,11 @@

}

nodes.appendTo($(".quickReplyContacts"));
nodes.appendTo($(".quickReplyContactsBox"));
};

$(".quickReplyContactsMoreLink").click(function () pushNewPopularContacts(10));

// Fill in the "10 most popular contacts" thing
let contactQuery = Gloda.newQuery(Gloda.NOUN_CONTACT);
contactQuery.orderBy("-popularity").limit(100);
Expand Down Expand Up @@ -1053,6 +1055,13 @@
<div class="quickReplyContactsHeader">
${str("mostFrequentContacts")}
</div>
<div class="quickReplyContactsBox">
</div>
<div class="quickReplyContactsMore">
<a class="quickReplyContactsMoreLink">
${str("showMore")}
</a>
</div>
</div>
<div class="quickReplyBox">
<div class="replyHeader">
Expand Down
1 change: 1 addition & 0 deletions locale/en-US/template.properties
Expand Up @@ -75,3 +75,4 @@ popoutTxt=in a new window
actionsSize=14

mostFrequentContacts=Most frequently emailed contacts:
showMore=show more…
14 changes: 12 additions & 2 deletions skin/quickreply.css
Expand Up @@ -414,6 +414,7 @@ html[xmlns] .cf {
border-bottom: 1px solid #888;
margin-bottom: 5px;
clear: both;
position: relative;
}

.popularPhoto {
Expand All @@ -426,7 +427,7 @@ html[xmlns] .cf {
cursor: pointer;
}

.popularEmail {
.popularEmail, .popularName {
/* 300px - 32px - 4px */
width: 260px;
text-overflow: ellipsis;
Expand All @@ -436,6 +437,15 @@ html[xmlns] .cf {
}

.popularRemove {
float: right;
position: absolute;
top: 0; right: 0;
cursor: pointer;
}

.quickReplyContactsMore {
text-align: center;
}

.quickReplyContactsMoreLink {
cursor: pointer;
}

0 comments on commit f1dd70e

Please sign in to comment.