mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 20:00:43 -03:30
Fixed reset on custom inv form
Instead of clearing the form we reset it to the values in the API
This commit is contained in:
parent
4d99e917ce
commit
8a2a829bac
@ -320,6 +320,10 @@ function($compile, CustomInventoryList, Rest, Wait, GenerateList, CustomInventor
|
||||
|
||||
scope.formReset = function () {
|
||||
generator.reset();
|
||||
//$('#forks-slider').slider("option", "value", $scope.forks);
|
||||
for (var fld in master) {
|
||||
scope[fld] = master[fld];
|
||||
}
|
||||
};
|
||||
};
|
||||
}]);
|
||||
|
||||
@ -24,7 +24,7 @@ angular.module('CustomInventoryListDefinition', [])
|
||||
|
||||
fields: {
|
||||
name: {
|
||||
key: true,
|
||||
//key: true,
|
||||
label: 'Name',
|
||||
columnClass: 'col-md-3 col-sm-9 col-xs-9',
|
||||
modalColumnClass: 'col-md-8'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user