Fix bug form when no keywords are available

hinted-selects
Vitaliy Filippov 2014-11-08 02:01:15 +03:00
parent 1fdffacf00
commit 5e09856986
1 changed files with 4 additions and 0 deletions

View File

@ -384,6 +384,10 @@ function addKeywordsAutocomplete()
// CustIS bug 66910 - check new keywords and requery description for it
function check_new_keywords(form)
{
if (!form.keywords)
{
return true;
}
var input_kw = form.keywords.value.trim();
input_kw = input_kw.length ? input_kw.split(/[,\s]*,[,\s]*/) : [];
var kw_hash = {};