mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 02:47:36 -02: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:
@@ -320,6 +320,10 @@ function($compile, CustomInventoryList, Rest, Wait, GenerateList, CustomInventor
|
|||||||
|
|
||||||
scope.formReset = function () {
|
scope.formReset = function () {
|
||||||
generator.reset();
|
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: {
|
fields: {
|
||||||
name: {
|
name: {
|
||||||
key: true,
|
//key: true,
|
||||||
label: 'Name',
|
label: 'Name',
|
||||||
columnClass: 'col-md-3 col-sm-9 col-xs-9',
|
columnClass: 'col-md-3 col-sm-9 col-xs-9',
|
||||||
modalColumnClass: 'col-md-8'
|
modalColumnClass: 'col-md-8'
|
||||||
|
|||||||
Reference in New Issue
Block a user