From 2bd856da93b8841195135010438343d5f834f1b0 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Mon, 20 Apr 2015 12:34:14 -0400 Subject: [PATCH] select2 comments and removal of stale awMultiSelect adding comments for how to implement the select2 on a select field, and removing the directive that no longer creates select2 fields --- awx/ui/static/js/helpers/Groups.js | 1 - awx/ui/static/js/shared/Utilities.js | 18 +++++++++++++++ awx/ui/static/js/shared/directives.js | 27 ----------------------- awx/ui/static/js/shared/form-generator.js | 3 --- 4 files changed, 18 insertions(+), 31 deletions(-) diff --git a/awx/ui/static/js/helpers/Groups.js b/awx/ui/static/js/helpers/Groups.js index 4f734b375e..5e096a04f7 100644 --- a/awx/ui/static/js/helpers/Groups.js +++ b/awx/ui/static/js/helpers/Groups.js @@ -1058,7 +1058,6 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', listGenerator.name id: 'all', text: 'All' }]; - // $('#source_source_regions').select2('data', master.source_regions); } if (data.group_by && data.source === 'ec2') { set = sources_scope.ec2_group_by; diff --git a/awx/ui/static/js/shared/Utilities.js b/awx/ui/static/js/shared/Utilities.js index 92200cfed8..496453faad 100644 --- a/awx/ui/static/js/shared/Utilities.js +++ b/awx/ui/static/js/shared/Utilities.js @@ -664,6 +664,24 @@ angular.module('Utilities', ['RestServices', 'Utilities']) * @name shared.function:Utilities#CreateSelect2 * @methodOf shared.function:Utilities * @description Make a regular select drop down a select2 dropdown + * To make a ``