diff --git a/www/js/controllers/network-controllers.js b/www/js/controllers/network-controllers.js index 8c07f40b02fb2c0b6b45c6083328db74cc5ce685..e3fe68b2a58b0366dc9bee48713ee33bb7d9eadf 100644 --- a/www/js/controllers/network-controllers.js +++ b/www/js/controllers/network-controllers.js @@ -14,6 +14,9 @@ angular.module('cesium.network.controllers', ['cesium.services']) templateUrl: "templates/network/view_network.html", controller: 'NetworkLookupCtrl' } + }, + data: { + silentLocationChange: true } }) @@ -44,7 +47,7 @@ angular.module('cesium.network.controllers', ['cesium.services']) ; -function NetworkLookupController($scope, $state, $ionicHistory, $ionicPopover, $window, +function NetworkLookupController($scope, $state, $location, $ionicPopover, $window, BMA, UIUtils, csSettings, csCurrency, csNetwork, csWot) { 'ngInject'; @@ -188,15 +191,8 @@ function NetworkLookupController($scope, $state, $ionicHistory, $ionicPopover, $scope.search.loading = true; $scope.load(); - $ionicHistory.nextViewOptions({ - disableAnimate: true, - disableBack: true, - historyRoot: true - }); - $state.go('app.network', {type: $scope.search.type}, { - reload: false, - inherit: true, - notify: false}); + // Update location href + $location.search({type: $scope.search.type}).replace(); };