WEBUI: Fix the LovCombo regex handling - fixes #2598

This commit is contained in:
Jaroslav Kysela 2015-01-20 15:21:14 +01:00
parent e565e7cbf0
commit b28f37bf8a

View file

@ -167,7 +167,8 @@ Ext.ux.form.LovCombo = Ext.extend(Ext.form.ComboBox, {
* @private
*/
,onBeforeQuery:function(qe) {
qe.query = qe.query.replace(new RegExp(this.getCheckedDisplay() + '[ ' + this.separator + ']*'), '');
var d = tvheadend.regexEscape(this.getCheckedDisplay());
qe.query = qe.query.replace(new RegExp(d + '[ ' + this.separator + ']*'), '');
} // eo function onBeforeQuery
// }}}
// {{{