From ca93753d9df0529913fa7e8f55bc80f14aa48b8e Mon Sep 17 00:00:00 2001 From: blavenie <benoit.lavenier@e-is.pro> Date: Thu, 10 Aug 2017 10:53:44 +0200 Subject: [PATCH] [enh] Network: update location href without $ionicHistory --- www/js/controllers/network-controllers.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/www/js/controllers/network-controllers.js b/www/js/controllers/network-controllers.js index 8c07f40b0..e3fe68b2a 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(); }; -- GitLab