mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-05-16 20:50:10 +02:00
js: Fix that the menu is not reloaded in case no search is available
fixes #12541
This commit is contained in:
parent
124fb848a0
commit
1993ae2ed2
@ -60,10 +60,9 @@
|
|||||||
if ($search[0] === document.activeElement) {
|
if ($search[0] === document.activeElement) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
var search = $container.find('#search').val();
|
if ($search.length) {
|
||||||
if (search.length) {
|
|
||||||
var $content = $('<div></div>').append(content);
|
var $content = $('<div></div>').append(content);
|
||||||
$content.find('#search').attr('value', search).addClass('active');
|
$content.find('#search').attr('value', $search.val()).addClass('active');
|
||||||
return $content.html();
|
return $content.html();
|
||||||
}
|
}
|
||||||
return content;
|
return content;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user