mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Fix unable to clear nm entry headers by catching change event instead of select
This commit is contained in:
parent
8b30732aa0
commit
a3a0450143
@ -3305,26 +3305,12 @@ var et2_nextmatch_entryheader = (function(){ "use strict"; return et2_link_entry
|
|||||||
* @param {object} event
|
* @param {object} event
|
||||||
* @param {object} selected
|
* @param {object} selected
|
||||||
*/
|
*/
|
||||||
select: function(event, selected) {
|
onchange: function() {
|
||||||
this._super.apply(this, arguments);
|
|
||||||
var col_filter = {};
|
var col_filter = {};
|
||||||
if(selected && selected.item.value) {
|
col_filter[this.id] = this.get_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] = '';
|
|
||||||
}
|
|
||||||
this.nextmatch.applyFilters.call(this.nextmatch, {col_filter: col_filter});
|
this.nextmatch.applyFilters.call(this.nextmatch, {col_filter: col_filter});
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Override to always return a string appname:id (or just id) for simple (one real selection)
|
* Override to always return a string appname:id (or just id) for simple (one real selection)
|
||||||
* cases, parent returns an object. If multiple are selected, or anything other than app and
|
* cases, parent returns an object. If multiple are selected, or anything other than app and
|
||||||
|
Loading…
Reference in New Issue
Block a user