js: handler for recently added drop-down button

This commit is contained in:
Thomas Gelf 2017-09-27 08:52:49 +02:00
parent 83582e9245
commit d132633ff9
1 changed files with 6 additions and 1 deletions

View File

@ -514,6 +514,12 @@
ev.stopPropagation(); ev.stopPropagation();
return false; return false;
*/ */
} else if (el.name.match(/__DROP_DOWN$/)) {
ev.preventDefault();
ev.stopPropagation();
var $el = $(ev.currentTarget).closest('li').find('input[type=text]');
this.getSuggestionList($el);
return false;
} }
}, },
@ -785,4 +791,3 @@
Icinga.availableModules.director = Director; Icinga.availableModules.director = Director;
}(Icinga)); }(Icinga));