fixed profile redirect with Chrome
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/vre-members@100210 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
55132203c6
commit
fe282c3abf
|
@ -35,6 +35,7 @@ public class DisplayBadge extends Composite {
|
|||
@UiField HTML institutionLabel;
|
||||
@UiField AnchorElement imageRedirect;
|
||||
|
||||
|
||||
private BelongingUser myUserInfo;
|
||||
|
||||
public DisplayBadge(BelongingUser user) {
|
||||
|
@ -45,7 +46,7 @@ public class DisplayBadge extends Composite {
|
|||
myUserInfo = user;
|
||||
avatarImage.getElement().getParentElement().setAttribute("href", myUserInfo.getAvatarId());
|
||||
avatarImage.setUrl(myUserInfo.getAvatarId());
|
||||
userFullName.setText(myUserInfo.getFullName());
|
||||
userFullName.setHTML("<a class=\"person-link\" href=\""+user.getProfileLink()+"\">"+myUserInfo.getFullName()+"</a>");
|
||||
|
||||
|
||||
String head = (user.getHeadline() == null || user.getHeadline().compareTo("") == 0) ? "" : user.getHeadline();
|
||||
|
@ -56,13 +57,9 @@ public class DisplayBadge extends Composite {
|
|||
String title = "See profile of " + myUserInfo.getFullName();
|
||||
avatarImage.setTitle(title);
|
||||
userFullName.setTitle(title);
|
||||
|
||||
}
|
||||
|
||||
@UiHandler("userFullName")
|
||||
void onSubmitClick(ClickEvent e) {
|
||||
Location.assign(myUserInfo.getProfileLink());
|
||||
}
|
||||
|
||||
|
||||
public void showError(String message) {
|
||||
Window.alert("Failure: " + message);
|
||||
|
|
|
@ -27,19 +27,29 @@
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
.fullName {
|
||||
|
||||
a.person-link {
|
||||
color: #444444;
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.fullName:hover {
|
||||
a.person-link,a.person-link:visited {
|
||||
cursor: pointer;
|
||||
cursor: hand;
|
||||
text-decoration: underline;
|
||||
color: #01497C;
|
||||
font-size: 16x;
|
||||
text-decoration: none;
|
||||
color: #3B5998;
|
||||
}
|
||||
|
||||
a.person-link:hover {
|
||||
opacity: 0.8;
|
||||
font-size: 16x;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
.headline {
|
||||
font-size: 13px;
|
||||
color: #444444;
|
||||
|
|
Loading…
Reference in New Issue