input-enrichment.js: Add method `update()`
This commit is contained in:
parent
67de8a079a
commit
dc5e39ef1c
|
@ -39,6 +39,16 @@
|
|||
};
|
||||
InputEnrichment.prototype = new Icinga.EventListener();
|
||||
|
||||
/**
|
||||
* @param data
|
||||
*/
|
||||
InputEnrichment.prototype.update = function (data) {
|
||||
var input = document.querySelector(data[0]);
|
||||
if (input !== null && this._enrichments.has(input)) {
|
||||
this._enrichments.get(input).updateTerms(data[1]);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @param event
|
||||
* @param content
|
||||
|
|
Loading…
Reference in New Issue