An Angular Controller
file: code/Winxle-Admin/CampaignCtrl.js 188: updateStatusAndNext = function(campaign, status, note) { 189: webService.put( 190: 'campaign/' + campaign.uuid + '/status', 191: { status: status, 192: note: note 193: } 194: ).then( 195: function(data){ 196: $scope.campaign.status = status; 197: $scope.campaign.note = ''; 198: gotoCampaign(CampaignIterator.nextItem()); 199: }, 200: function(err){ 201: console.error(['Could not set status to approved',err]); 202: } 203: ); 204: };
PUT the status