mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-05 21:09:52 +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)
|
function show_custom_country(selectbox)
|
||||||
{
|
{
|
||||||
|
if(!selectbox) return;
|
||||||
custom_field_name = selectbox.name.replace("countrycode", "countryname");
|
custom_field_name = selectbox.name.replace("countrycode", "countryname");
|
||||||
custom_field = document.getElementById(custom_field_name);
|
custom_field = document.getElementById(custom_field_name);
|
||||||
if(custom_field && selectbox.value == "-custom-") {
|
if(custom_field && selectbox.value == "-custom-") {
|
||||||
|
Loading…
Reference in New Issue
Block a user