Hi guys,
whats the easiest way to create a modal pop up in suite crm? Was implementing the following in footer.tpl but it never got to show the popup.
$(function () {
$("#popup_opener").click(function () {
dialog = new YAHOO.widget.Dialog(‘dialog1’, {
width: ‘400px’,
height: ‘400px’,
fixedcenter: “contained”,
visible: false,
draggable: true,
position: ‘absolute’,
close: false,
centered: true,
// effect:[{effect:YAHOO.widget.ContainerEffect.SLIDE, duration:0.2},
// {effect:YAHOO.widget.ContainerEffect.FADE,duration:0.2}],
modal: true
});
var bodyHtml = '<input type=\"button\" id=\"popup_opener\" value=\"Create Complaint\">';
dialog.setHeader("blahhhhh");
dialog.setBody(bodyHtml);
dialog.show();
});
});