* Addressbook: fixed error in extended search

This commit is contained in:
Ralf Becker 2012-10-24 09:53:24 +00:00
parent 79d2c8f8a1
commit 6ade2ce970

View File

@ -126,9 +126,12 @@ function check_value(input, own_id)
if (typeof data.fileas_options == 'object')
{
var selbox = document.getElementById("exec[fileas_type]");
for (var i=0; i < data.fileas_options.length; i++)
if (selbox)
{
selbox.options[i].text = data.fileas_options[i];
for (var i=0; i < data.fileas_options.length; i++)
{
selbox.options[i].text = data.fileas_options[i];
}
}
}
});