diff --git a/app/js/controller.js b/app/js/controller.js index de0feed8..8cefa341 100644 --- a/app/js/controller.js +++ b/app/js/controller.js @@ -743,14 +743,15 @@ angular.module('reachRabbitApp.influencer.controller', ['reachRabbitApp.service' .controller('InfluencerCampaignListController', ['$scope', '$state', 'CampaignService', 'DataService', 'ExampleCampaigns', '$rootScope', function ($scope, $state, CampaignService, DataService, ExampleCampaigns, $rootScope) { $scope.params = {}; + $scope.filter = {}; $scope.handleUserClickThumbnail = function (c) { $state.go('influencer-campaign-detail', { campaignId: c.campaignId }); }; - $scope.$watch('filter', function () { - $scope.load(_.extend($scope.params, { mediaId: $scope.filter })); + $scope.$watch('filter.value', function () { + $scope.load(_.extend($scope.params, { mediaId: $scope.filter.value })); }); //Load campaign data diff --git a/app/view/influencer-campaign-list.html b/app/view/influencer-campaign-list.html index c2b56808..36075e18 100644 --- a/app/view/influencer-campaign-list.html +++ b/app/view/influencer-campaign-list.html @@ -5,7 +5,7 @@

งานทั้งหมด

- +