forked from extern/egroupware
Fix unable to clear nm entry headers by catching change event instead of select
This commit is contained in:
parent
8b30732aa0
commit
a3a0450143
@ -3305,23 +3305,9 @@ var et2_nextmatch_entryheader = (function(){ "use strict"; return et2_link_entry
|
||||
* @param {object} event
|
||||
* @param {object} selected
|
||||
*/
|
||||
select: function(event, selected) {
|
||||
this._super.apply(this, arguments);
|
||||
onchange: function() {
|
||||
var col_filter = {};
|
||||
if(selected && selected.item.value) {
|
||||
if(event.data.options.only_app)
|
||||
{
|
||||
// Only one application, just give the ID
|
||||
col_filter[this.id] = selected.item.value;
|
||||
}
|
||||
else
|
||||
{
|
||||
// App is expecting app:id
|
||||
col_filter[this.id] = event.data.app_select.val() + ":"+ selected.item.value;
|
||||
}
|
||||
} else {
|
||||
col_filter[this.id] = '';
|
||||
}
|
||||
col_filter[this.id] = this.get_value();
|
||||
this.nextmatch.applyFilters.call(this.nextmatch, {col_filter: col_filter});
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user