Commit new state

This commit is contained in:
Julius Haertl
2016-07-02 22:13:32 +02:00
parent dae1a9b3d4
commit 7a9489adf0
31 changed files with 884 additions and 97 deletions

View File

@@ -85,6 +85,7 @@ app.factory('ApiService', function($http, $q){
return deferred.promise;
};
// methods for managing data
ApiService.prototype.clear = function() {
@@ -97,7 +98,8 @@ app.factory('ApiService', function($http, $q){
} else {
Object.keys(entity).forEach(function (key) {
element[key] = entity[key];
element[key].status = {};
if(element[key]!==null)
element[key].status = {};
});
}
};