diff --git a/js/controller/ListController.js b/js/controller/ListController.js index 61df6f6da..16ec5f598 100644 --- a/js/controller/ListController.js +++ b/js/controller/ListController.js @@ -101,8 +101,8 @@ app.controller('ListController', function ($scope, $location, $filter, BoardServ $scope.boardUpdate = function(board) { BoardService.update(board).then(function(data) { $scope.filterData(); + board.status.edit = false; }); - board.status.edit = false; }; $scope.boardUpdateBegin = function(board) { diff --git a/js/service/ApiService.js b/js/service/ApiService.js index cbc394d6a..f3fa850e3 100644 --- a/js/service/ApiService.js +++ b/js/service/ApiService.js @@ -124,9 +124,8 @@ app.factory('ApiService', function($http, $q){ } else { Object.keys(entity).forEach(function (key) { element[key] = entity[key]; - if(element[key]!==null) - element[key].status = {}; }); + element.status = {}; } }; ApiService.prototype.remove = function(id) {