Fórumok
Non-blocking pop up - click on outside the pop up not closing popup
Nagendra Kumar Busam, módosítva 9 év-val korábban
Non-blocking pop up - click on outside the pop up not closing popup
Liferay Master Bejegyzések: 678 Csatlakozás dátuma: 2009.07.07. Legújabb bejegyzések
I do have a requirement for showing some blocking & some non-blocking pop ups. I am seeing pop ups as blocking & non-blcoking - no issues here. Main concern is for non blocking pop up if I click out side of pop up - pop up is not getting closed. FYI, I am using 6.2
Just for post, I am sending simple title & content - actual case I am using HtmlUtil.escapeJS while passing though
function openDialog(title, content, blocking){
var blockingDialog = true;
if (blocking != 'true') {
blockingDialog = false;
}
Liferay.Util.openWindow({
dialog: {
bodyContent: Liferay.Util.escapeCDATA(content),
modal: blockingDialog,
draggable: false,
resizable: false
},
cache: false,
title: title
});
}
<a class="btn btn-link" href="#" onclick="javascript:openDialog( 'Sample Title - Blocking','Blocking \n\nSample content sample content \n\nsample content', 'true')" role="button">Blocking</a>
<a class="btn btn-link" href="#" onclick="javascript:openDialog( 'Sample Title - Non Blocking','Non Blocking \n\n Sample content sample content \n\nsample content', 'false')" role="button">Non Blocking</a>
Just for post, I am sending simple title & content - actual case I am using HtmlUtil.escapeJS while passing though