javascript - How to open dialogue box in parent window when clicking button from related list hover over -
we have custom onclick javascript button on list page of opportunity. button open jquery dialogue box when click on button. working fine when clicking button opportunity list page or opportunity related list account. when try open related list hover on dialouge box opening this. please 1 in opening dialogue box in proper window.
$g("#dialog").dialog({ modal: true, buttons: { "yes": function() { window.open("/apex/contractprocessflowvf_slds?accid={!account.id}", "_top "); $g(this).dialog("close"); }, "no": function() { window.open("/006/e?returl=%2f{!account.id}&accid={!account.id}&recordtype=" + rt + "&ent=opportunity&opp3=ee%20-%20{!account.name}&opp9={!account.ee_future_close_date__c}&opp11=target", "_parent"); $g(this).dialog("close"); } }
});
any appreciated. in advance.
naveen
Comments
Post a Comment