From 89b8f832b979078e4fad09c555041bc4398c6ed6 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Mon, 8 Jun 2015 16:52:22 -0400 Subject: [PATCH] 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 --- awx/ui/static/js/shared/Utilities.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/awx/ui/static/js/shared/Utilities.js b/awx/ui/static/js/shared/Utilities.js index 7a2a6c352a..5da5b1226f 100644 --- a/awx/ui/static/js/shared/Utilities.js +++ b/awx/ui/static/js/shared/Utilities.js @@ -697,15 +697,13 @@ angular.module('Utilities', ['RestServices', 'Utilities', 'sanitizeFilter']) "select2/dropdown", "select2/dropdown/attachContainer", "select2/dropdown/search", - ], 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); - }; + ], function (Utils, DropdownAdapter, AttachContainer, DropdownSearch) { var CustomAdapter = Utils.Decorate( - DropdownAdapter, + Utils.Decorate( + DropdownAdapter, + DropdownSearch + ), AttachContainer );