1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

adding search widget back to select2

due to restrictions of the update of select2, I'm opting to include the search bar in the select2 dropdown for now
This commit is contained in:
Jared Tabor 2015-06-08 16:52:22 -04:00
parent a44c6c92d4
commit 89b8f832b9

View File

@ -697,15 +697,13 @@ 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) { ], function (Utils, DropdownAdapter, AttachContainer, DropdownSearch) {
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
); );