mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
Fix clearing of nm_popup_action resulting in a submit for the second time a popup was shown
This commit is contained in:
parent
e6b2c43e26
commit
843a378b65
@ -190,7 +190,7 @@ function nm_action(_action, _senders)
|
||||
|
||||
case 'open_popup':
|
||||
// open div styled as popup contained in current form and named action.id+'_popup'
|
||||
if (typeof nm_popup_action == 'undefined')
|
||||
if (nm_popup_action == null)
|
||||
{
|
||||
nm_open_popup(_action, _senders);
|
||||
break;
|
||||
@ -291,7 +291,7 @@ function nm_compare_field(_action, _senders, _target)
|
||||
return value == _action.data.fieldValue;
|
||||
}
|
||||
|
||||
var nm_popup_action, nm_popup_senders;
|
||||
var nm_popup_action, nm_popup_senders = null;
|
||||
|
||||
/**
|
||||
* Open popup for a certain action requiring further input
|
||||
@ -335,8 +335,8 @@ function nm_hide_popup(element, div_id)
|
||||
if(popup) {
|
||||
popup.style.display = 'none';
|
||||
}
|
||||
delete nm_popup_action;
|
||||
delete nm_popup_senders;
|
||||
nm_popup_action = null;
|
||||
nm_popup_senders = null;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user