Commit 93335551 authored by Evren Kutar's avatar Evren Kutar

v0.0.3.1

node and listnode add and edit screen fixes
parent 764d8593
...@@ -210,6 +210,12 @@ form_generator.factory('Generator', function ($http, $q, $log, $location, $modal ...@@ -210,6 +210,12 @@ form_generator.factory('Generator', function ($http, $q, $log, $location, $modal
}; };
generator.submit = function ($scope) { generator.submit = function ($scope) {
// todo: diff for all submits to recognize form change. if no change returns to view with no submit // todo: diff for all submits to recognize form change. if no change returns to view with no submit
angular.forEach($scope.ListNode, function (value, key) {
$scope.model[key] = value.model;
});
angular.forEach($scope.Node, function (value, key) {
$scope.model[key] = value.model;
});
var data = { var data = {
"form": $scope.model, "form": $scope.model,
"cmd": $scope.form_params.cmd, "cmd": $scope.form_params.cmd,
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment