mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
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