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");     } } 

});

hover on over opportunity related list

button click opportunity related hover over

any appreciated. in advance.

naveen


Comments

Popular posts from this blog

javascript - Replicate keyboard event with html button -

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Web audio api 5.1 surround example not working in firefox -