I'm using apex.5.1.2 and universal theme.
I have several pages with page mode = modal and I'm using
apex_util.prepare_url(p_url => 'f?p='
|| v('app_id')
|| ':'||pPage||':'
|| v('app_session')
|| ':::' ||vPage||':'||pParam,
p_triggering_element => vTrigItem);
In all cases it would produce something like below
javascript:apex.navigation.dialog('f?p=100:61081:15675301525632:::61081:P61081_TITLE:Partial\u002520Payment\u0026p_dialog_cs=0lr_2dLZt_3qQ1GADDUvY0D8u_k',{title:'Partial Payment',height:'auto',width:'720',maxWidth:'960',modal:true,dialog:null},'t-Dialog-page--standard '+'',apex.jQuery('#P61075_SAVE_MODE'));
But for this 1 page its different and I can't see any difference between the other modal pages. Please see the bold line its using dialog.close instead of just dialog like the one from above.
Thanks
javascript:apex.navigation.dialog.close(true,function(pDialog){ apex.navigation.dialog('f?p=100:61079:15675301525632:::61079:P61079_DIST_TYPE,P61079_MULTI_BILL:A,Y\u0026cs=1knAynT5yylWT_0ylqLpi83G4Z04\u0026p_dialog_cs=OWgDR1B6A-ij8nGyB4_YbbEmcIA',{title:'Receipt Collection - Distribution',height:'auto',width:'720',maxWidth:'960',modal:true,dialog:pDialog},'t-Dialog-page--standard '+'',apex.jQuery('#AB2P')); });