Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
webui: fix 'Map all services'
  • Loading branch information
perexg committed Apr 5, 2016
1 parent cdbcc2c commit 6e8213e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/webui/static/app/servicemapper.js
Expand Up @@ -126,7 +126,7 @@ tvheadend.service_mapper0 = function(all)
beforeShow: all ? function(panel, conf) {
var form = panel.getForm();
var services = form.findField('services');
services.on('afterrender', function() {
services.store.on('load', function() {
services.selectAll();
});
} : null,
Expand Down
6 changes: 4 additions & 2 deletions src/webui/static/lovcombo/lovcombo-all.js
Expand Up @@ -167,8 +167,10 @@ Ext.ux.form.LovCombo = Ext.extend(Ext.form.ComboBox, {
* @private
*/
,onBeforeQuery:function(qe) {
var d = tvheadend.regexEscape(this.getCheckedDisplay());
qe.query = qe.query.replace(new RegExp(d + '[ ' + this.separator + ']*'), '');
if (qe.query) {
var d = tvheadend.regexEscape(this.getCheckedDisplay());
qe.query = qe.query.replace(new RegExp(d + '[ ' + this.separator + ']*'), '');
}
} // eo function onBeforeQuery
// }}}
// {{{
Expand Down

0 comments on commit 6e8213e

Please sign in to comment.