From dfcfb2df3d1077a80f1e0a2bd847e4a46a50ba95 Mon Sep 17 00:00:00 2001 From: poonwu Date: Tue, 18 Oct 2016 21:05:33 +0700 Subject: [PATCH] Fixed #235 --- app/js/controller.js | 5 +++-- app/view/influencer-campaign-list.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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 @@

งานทั้งหมด

- +