mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-07 21:05:18 +02:00
js: Suspend auto refresh once search-bar
enrichment opens its editor
This commit is contained in:
parent
1f29c4a2fe
commit
f44ea884bd
@ -29,6 +29,16 @@
|
||||
this.on('beforerender', '.container', this.onBeforeRender, this);
|
||||
this.on('rendered', '.container', this.onRendered, this);
|
||||
|
||||
/**
|
||||
* Listen for events emitted by the SearchBar widget
|
||||
*/
|
||||
this.on('editor-open', '.container', function () {
|
||||
this.dataset.suspendAutorefresh = '';
|
||||
});
|
||||
this.on('editor-close', '.container', function () {
|
||||
delete this.dataset.suspendAutorefresh;
|
||||
});
|
||||
|
||||
/**
|
||||
* Enriched inputs
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user