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:
Jared Tabor 2014-12-03 11:10:23 -05:00
parent 4d99e917ce
commit 8a2a829bac
2 changed files with 5 additions and 1 deletions

View File

@ -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];
}
};
};
}]);

View File

@ -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'