forked from extern/egroupware
Use div_id, if provided, to close popup
This commit is contained in:
parent
5b3aa1bcdd
commit
0d5c3a5231
@ -327,7 +327,7 @@ function nm_submit_popup(button)
|
||||
function nm_hide_popup(element, div_id)
|
||||
{
|
||||
var prefix = element.id.substring(0,element.id.indexOf('['));
|
||||
var popup = jQuery("#"+prefix+"_popup").get(0) || jQuery("[id*='" + prefix + "_popup']").get(0);
|
||||
var popup = div_id ? document.getElementById(div_id) : jQuery("#"+prefix+"_popup").get(0) || jQuery("[id*='" + prefix + "_popup']").get(0);
|
||||
|
||||
// Hide popup
|
||||
if(popup) {
|
||||
|
Loading…
Reference in New Issue
Block a user