From 26e0d5d69eb1f06d1ec19f026516d2ba1229e1ad Mon Sep 17 00:00:00 2001 From: Rishav Date: Sun, 16 Apr 2017 19:30:54 +0530 Subject: [PATCH] save changes issue --- app/views/updateAllFBO/updateAllFBO.controller.js | 3 ++- app/views/updateFBODept/updateFBODept.controller.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/updateAllFBO/updateAllFBO.controller.js b/app/views/updateAllFBO/updateAllFBO.controller.js index 13be230..8e8939b 100644 --- a/app/views/updateAllFBO/updateAllFBO.controller.js +++ b/app/views/updateAllFBO/updateAllFBO.controller.js @@ -3,7 +3,7 @@ //Load controller angular.module('acuefuel') - .controller('updateAllFBOController', function($scope, $stateParams, UpdateAllFBO) { + .controller('updateAllFBOController', function($scope, $stateParams, $state, UpdateAllFBO) { $(document).ready(function(){ $('.i-checks').iCheck({ checkboxClass: 'icheckbox_square-green', @@ -93,6 +93,7 @@ UpdateAllFBO.updatefeatureControl(updatefeatureControlData).then(function(response) { console.log(response) }) + $state.go('index.fboAdmin'); }) } } diff --git a/app/views/updateFBODept/updateFBODept.controller.js b/app/views/updateFBODept/updateFBODept.controller.js index 866ebeb..e8a9bbb 100644 --- a/app/views/updateFBODept/updateFBODept.controller.js +++ b/app/views/updateFBODept/updateFBODept.controller.js @@ -3,7 +3,7 @@ //Load controller angular.module('acuefuel') - .controller('updateFBODeptController', function($scope, $stateParams, UpdateAllFBODept, UpdateAllFBO, FBOFlight) { + .controller('updateFBODeptController', function($scope, $stateParams, $state, UpdateAllFBODept, UpdateAllFBO, FBOFlight) { $scope.showPayments = true; $scope.aircraft = {}; @@ -98,6 +98,7 @@ closeButton: true }) }) + $state.go('index.flightDept'); } } -- 2.0.0