mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Merge pull request #3260 from Icinga/bugfix/reset-search-not-working-2753
Make search reset control working across auto-refresh
This commit is contained in:
commit
76bc59b7bf
@ -147,6 +147,8 @@
|
||||
|
||||
$(document).on('click', '.tree .handle', { self: this }, this.treeNodeToggle);
|
||||
|
||||
$(document).on('click', '#search + .search-reset', this.clearSearch);
|
||||
|
||||
// TBD: a global autocompletion handler
|
||||
// $(document).on('keyup', 'form.auto input', this.formChangeDelayed);
|
||||
// $(document).on('change', 'form.auto input', this.formChanged);
|
||||
@ -609,6 +611,10 @@
|
||||
return $target;
|
||||
},
|
||||
|
||||
clearSearch: function (event) {
|
||||
$(event.target).parent().find('#search').attr('value', '');
|
||||
},
|
||||
|
||||
unbindGlobalHandlers: function () {
|
||||
$.each(this.icinga.behaviors, function (name, behavior) {
|
||||
behavior.unbind($(document));
|
||||
|
Loading…
x
Reference in New Issue
Block a user