Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Sven Bergman
How to close a Liferay.util.openWindow popup window?
October 4, 2012 1:21 AM
Answer

Sven Bergman

Rank: New Member

Posts: 3

Join Date: October 4, 2012

Recent Posts

Given a following code:

<liferay-ui:icon
image="edit"
message="Edit"
url="<%= editUrl %>"
/>
The value for editUrl im backend:
if(assetRenderer.hasEditPermission(liferay.getThemeDisplay().getPermissionChecker())){
taglibEditURL = "javascript:Liferay.Util.openWindow({dialog: {width: 960}, id: '" + renderResponse.getNamespace() + "', title: '" + LanguageUtil.format(request.getLocale(), "edit-x", HtmlUtil.escape(assetRenderer.getTitle(request.getLocale()))) + "', uri:'" + HtmlUtil.escapeURL(editPortletURLString) + "'});";
}

When the content is saved or published, the portlet is loaded on the popup window. I want the popup window to close and the portlet with the editURL link to refresh.

any help regarding this...


Thanks...
Sven Bergman
RE: How to close a Liferay.util.openWindow popup window?
October 5, 2012 1:20 AM
Answer

Sven Bergman

Rank: New Member

Posts: 3

Join Date: October 4, 2012

Recent Posts

Can anybody help?