mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 01:21:21 +03:00
fixes issues with select dropdowns
and adds a search box for the timezone select dropdown
This commit is contained in:
parent
507db4e3b6
commit
04b8349895
@ -408,8 +408,20 @@ export default ['$filter', '$state', '$stateParams', '$http', 'Wait',
|
||||
}
|
||||
});
|
||||
|
||||
var callSelect2 = function() {
|
||||
CreateSelect2({
|
||||
element: '.MakeSelect2',
|
||||
multiple: false
|
||||
});
|
||||
$("#schedulerTimeZone").select2({
|
||||
width:'100%',
|
||||
containerCssClass: 'Form-dropDown',
|
||||
placeholder: 'SEARCH'
|
||||
});
|
||||
};
|
||||
|
||||
$scope.$on("updateSchedulerSelects", function() {
|
||||
callSelect2();
|
||||
});
|
||||
callSelect2();
|
||||
}];
|
||||
|
@ -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() {
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user