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',
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
CreateSelect2({
|
var callSelect2 = function() {
|
||||||
element: '.MakeSelect2',
|
CreateSelect2({
|
||||||
multiple: false
|
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',
|
element: '.MakeSelect2',
|
||||||
multiple: false
|
multiple: false
|
||||||
});
|
});
|
||||||
|
$("#schedulerTimeZone").select2({
|
||||||
|
width:'100%',
|
||||||
|
containerCssClass: 'Form-dropDown',
|
||||||
|
placeholder: 'SEARCH'
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.$on("updateSchedulerSelects", function() {
|
$scope.$on("updateSchedulerSelects", function() {
|
||||||
|
@ -122,7 +122,6 @@
|
|||||||
</label>
|
</label>
|
||||||
<select
|
<select
|
||||||
ng-disabled="!(schedule_obj.summary_fields.user_capabilities.edit || canAdd)"
|
ng-disabled="!(schedule_obj.summary_fields.user_capabilities.edit || canAdd)"
|
||||||
class="MakeSelect2"
|
|
||||||
name="schedulerTimeZone"
|
name="schedulerTimeZone"
|
||||||
id="schedulerTimeZone"
|
id="schedulerTimeZone"
|
||||||
ng-model="schedulerTimeZone"
|
ng-model="schedulerTimeZone"
|
||||||
@ -130,6 +129,7 @@
|
|||||||
required class="form-control input-sm"
|
required class="form-control input-sm"
|
||||||
ng-change="scheduleTimeChange()" >
|
ng-change="scheduleTimeChange()" >
|
||||||
</select>
|
</select>
|
||||||
|
<option></option>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group SchedulerForm-formGroup">
|
<div class="form-group SchedulerForm-formGroup">
|
||||||
<label class="Form-inputLabel">
|
<label class="Form-inputLabel">
|
||||||
|
Loading…
Reference in New Issue
Block a user