You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

articleCategory.controller.js 1.5KB

123456789101112131415161718192021222324252627282930313233343536
  1. angular.module('app')
  2. .controller('articleCategoryController', ['$scope', '$stateParams', 'articlesBusiness', 'listControllerBuilder',
  3. function($scope, $stateParams, articlesBusiness, listControllerBuilder) {
  4. $scope.business = articlesBusiness;
  5. $scope.itemType = 'articles';
  6. // $scope.defaultOrder = 'id';
  7. // listControllerBuilder.create($scope, $stateParams);
  8. //
  9. // $scope.getAddItem = function()
  10. // {
  11. // return {
  12. // title: $scope.query.filter
  13. // };
  14. // };
  15. //
  16. // $scope.getFilter = function (filter) {
  17. // var label = $scope.appUtils.tr('articles.type').toLowerCase();
  18. // return filter.replace(new RegExp(label + ': *([a-zA-Z0-9]*)'), function(match, p1)
  19. // {
  20. // var type = null;
  21. // for (var t in $scope.appUtils.articleTypes)
  22. // {
  23. // var str = $scope.appUtils.articleTypes[t];
  24. // if ($scope.appUtils.tr('articles.types.' + str).toLowerCase() == p1.toLowerCase())
  25. // {
  26. // type = str;
  27. // break;
  28. // }
  29. // }
  30. // return type == null ? '' : 'type:' + type;
  31. // });
  32. // };
  33. //
  34. // $scope.init();
  35. }]);