Skip to content

Instantly share code, notes, and snippets.

@omarnetfr
Last active January 4, 2016 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omarnetfr/8596092 to your computer and use it in GitHub Desktop.
Save omarnetfr/8596092 to your computer and use it in GitHub Desktop.
<aui:script>
Liferay.provide(
window,
'<portlet:namespace />openPopupWindow',
function(url, title, id) {
var instance = this;
Liferay.Util.openWindow(
{
cache: false,
dialog: {
align: Liferay.Util.Window.ALIGN_CENTER,
width: '90%',
modal: true
},
id: 'addPopUpDialog',
title: title,
uri: url
}
);
},
['liferay-util-list-fields', 'liferay-util-window']
);
</aui:script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment