Remove the 'remove' property from the model

This commit is contained in:
Kevin Giszewski
2014-01-13 12:47:21 -05:00
parent 5d6581e988
commit 045fe2ee5c
+3 -1
View File
@@ -1,5 +1,5 @@
angular.module("umbraco").controller("Imulus.ArchetypeController", function ($scope, $http, assetsService) {
//$scope.model.value = "";
//set default value of the model
@@ -155,6 +155,8 @@
for (var i in $scope.archetypeRenderModel.fieldsets) {
if (!$scope.archetypeRenderModel.fieldsets[i].remove) {
//remove the 'remove' property as this is only for sorting/internal use
delete $scope.archetypeRenderModel.fieldsets[i].remove;
$scope.model.value.fieldsets.push($scope.archetypeRenderModel.fieldsets[i]);
}
}