<% User selUser = PortalUtil.getSelectedUser(request); selUser = PortalUtil.getUser(request); String currentURL = PortalUtil.getCurrentURL(request); long maxFileSize = PrefsPropsUtil.getLong(PropsKeys.UPLOAD_SERVLET_REQUEST_IMPL_MAX_SIZE) / 1024; %> <liferay-portlet:renderURL portletName="<%=PortletKeys.MY_ACCOUNT %>" windowState="<%= LiferayWindowState.POP_UP.toString() %>" var="editPortraitURL"> <portlet:param name="struts_action" value="/my_account/edit_user_portrait" /> <portlet:param name="redirect" value="<%= currentURL %>" /> <portlet:param name="p_u_i_d" value="${user.userId }" /> <portlet:param name="portrait_id" value="${user.portraitId }" /> </liferay-portlet:renderURL> <liferay-ui:logo-selector defaultLogoURL="<%= UserConstants.getPortraitURL(themeDisplay.getPathImage(), selUser.isMale(), 0) %>" editLogoURL="<%= editPortraitURL %>" imageId="<%= selUser.getPortraitId() %>" logoDisplaySelector=".user-logo" /> <aui:script> function _2_changeLogo(newPortraitURL, newPortraitId) { <portlet:namespace/>portraitId_var = newPortraitId; var A = AUI(); A.one('#igva_null_null_avatar').attr('src', newPortraitURL); A.one('.avatar').attr('src', newPortraitURL); //A.one('#_2_deletePortrait').val(false); } $('.delete-logo').hide(); </aui:script>