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

fixes issues with select dropdowns

and adds a search box for the timezone select dropdown
This commit is contained in:
Jared Tabor 2018-05-09 16:15:02 -07:00
parent 507db4e3b6
commit 04b8349895
No known key found for this signature in database
GPG Key ID: 1B343EC4C3CF7E5C
3 changed files with 21 additions and 4 deletions

View File

@ -408,8 +408,20 @@ export default ['$filter', '$state', '$stateParams', '$http', 'Wait',
}
});
CreateSelect2({
element: '.MakeSelect2',
multiple: false
var callSelect2 = function() {
CreateSelect2({
element: '.MakeSelect2',
multiple: false
});
$("#schedulerTimeZone").select2({
width:'100%',
containerCssClass: 'Form-dropDown',
placeholder: 'SEARCH'
});
};
$scope.$on("updateSchedulerSelects", function() {
callSelect2();
});
callSelect2();
}];

View File

@ -87,6 +87,11 @@ function($filter, $state, $stateParams, Wait, $scope, moment,
element: '.MakeSelect2',
multiple: false
});
$("#schedulerTimeZone").select2({
width:'100%',
containerCssClass: 'Form-dropDown',
placeholder: 'SEARCH'
});
};
$scope.$on("updateSchedulerSelects", function() {

View File

@ -122,7 +122,6 @@
</label>
<select
ng-disabled="!(schedule_obj.summary_fields.user_capabilities.edit || canAdd)"
class="MakeSelect2"
name="schedulerTimeZone"
id="schedulerTimeZone"
ng-model="schedulerTimeZone"
@ -130,6 +129,7 @@
required class="form-control input-sm"
ng-change="scheduleTimeChange()" >
</select>
<option></option>
</div>
<div class="form-group SchedulerForm-formGroup">
<label class="Form-inputLabel">