mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
Default value of preview multiple select dropdown should be read-only
This commit is contained in:
parent
2bccb5e753
commit
1b6e4af9a7
@ -15,6 +15,13 @@
|
||||
|
||||
var directive =
|
||||
{ require: 'ngModel',
|
||||
controller: function($scope) {
|
||||
$('select').on('select2:unselecting', (event) => {
|
||||
if (_.has($scope.$parent, 'preview')) {
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
},
|
||||
compile: function() {
|
||||
return {
|
||||
pre: function(scope, element, attrs, ngModel) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user