mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 17:08:34 +01:00
Avoid javascript error if edit popup is read-only
This commit is contained in:
parent
3bbc6a6962
commit
7e05b0dff2
@ -145,6 +145,7 @@ function setOptions(options_str)
|
||||
|
||||
function show_custom_country(selectbox)
|
||||
{
|
||||
if(!selectbox) return;
|
||||
custom_field_name = selectbox.name.replace("countrycode", "countryname");
|
||||
custom_field = document.getElementById(custom_field_name);
|
||||
if(custom_field && selectbox.value == "-custom-") {
|
||||
|
Loading…
Reference in New Issue
Block a user