diff --git a/src/main/webapp/js/controllers.js b/src/main/webapp/js/controllers.js index 3e7250aa..f99c0cf6 100644 --- a/src/main/webapp/js/controllers.js +++ b/src/main/webapp/js/controllers.js @@ -237,11 +237,14 @@ module.controller('CategoryDetailsCtrl', ['$scope', '$state', '$stateParams', 'F $scope.CategoryService = CategoryService; CategoryService.get(function() { - for(var i = 0; i < CategoryService.flatCategories.length; i++){ + for (var i = 0; i < CategoryService.flatCategories.length; i++) { var cat = CategoryService.flatCategories[i]; if (cat.id == $stateParams._id) { - $scope.category = angular.copy(cat); - $scope.category.name = $scope.category.origName; + $scope.category = { + id: cat.id, + name: cat.orig.name, + parentId: cat.orig.parentId, + } break; } } diff --git a/src/main/webapp/js/services.js b/src/main/webapp/js/services.js index 2ff9afeb..9b0e7e66 100644 --- a/src/main/webapp/js/services.js +++ b/src/main/webapp/js/services.js @@ -104,7 +104,7 @@ function($resource, $http) { array.push({ id : category.id, name : name, - origName: category.name + orig: category }); if (category.children) { for ( var i = 0; i < category.children.length; i++) { diff --git a/src/main/webapp/templates/_subscribe.html b/src/main/webapp/templates/_subscribe.html index c04fd45a..e95fa9f6 100644 --- a/src/main/webapp/templates/_subscribe.html +++ b/src/main/webapp/templates/_subscribe.html @@ -33,8 +33,8 @@
- Required
diff --git a/src/main/webapp/templates/feeds.category_details.html b/src/main/webapp/templates/feeds.category_details.html index 554ecd61..00eef826 100644 --- a/src/main/webapp/templates/feeds.category_details.html +++ b/src/main/webapp/templates/feeds.category_details.html @@ -14,7 +14,7 @@