mirror of
https://github.com/ansible/awx.git
synced 2026-04-09 03:59:21 -02:30
removing search bar for select2 drop downs
This commit is contained in:
@@ -694,14 +694,16 @@ angular.module('Utilities', ['RestServices', 'Utilities', 'sanitizeFilter'])
|
|||||||
"select2/dropdown",
|
"select2/dropdown",
|
||||||
"select2/dropdown/attachContainer",
|
"select2/dropdown/attachContainer",
|
||||||
"select2/dropdown/search",
|
"select2/dropdown/search",
|
||||||
], function (Utils, DropdownAdapter, AttachContainer, DropdownSearch) {
|
], function (Utils, DropdownAdapter, AttachContainer) {
|
||||||
|
|
||||||
|
AttachContainer.prototype.bind = function(decorated, container, $container) {
|
||||||
|
// Just pass the call through to the decorated class
|
||||||
|
decorated.call(this, container, $container);
|
||||||
|
};
|
||||||
|
|
||||||
var CustomAdapter = Utils.Decorate(
|
var CustomAdapter = Utils.Decorate(
|
||||||
Utils.Decorate(
|
|
||||||
DropdownAdapter,
|
DropdownAdapter,
|
||||||
DropdownSearch
|
AttachContainer
|
||||||
),
|
|
||||||
AttachContainer
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$(element).select2({
|
$(element).select2({
|
||||||
|
|||||||
Reference in New Issue
Block a user