Skip to content
Snippets Groups Projects
Commit ca93753d authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[enh] Network: update location href without $ionicHistory

parent cb8a7940
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,9 @@ angular.module('cesium.network.controllers', ['cesium.services']) ...@@ -14,6 +14,9 @@ angular.module('cesium.network.controllers', ['cesium.services'])
templateUrl: "templates/network/view_network.html", templateUrl: "templates/network/view_network.html",
controller: 'NetworkLookupCtrl' controller: 'NetworkLookupCtrl'
} }
},
data: {
silentLocationChange: true
} }
}) })
...@@ -44,7 +47,7 @@ angular.module('cesium.network.controllers', ['cesium.services']) ...@@ -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) { BMA, UIUtils, csSettings, csCurrency, csNetwork, csWot) {
'ngInject'; 'ngInject';
...@@ -188,15 +191,8 @@ function NetworkLookupController($scope, $state, $ionicHistory, $ionicPopover, ...@@ -188,15 +191,8 @@ function NetworkLookupController($scope, $state, $ionicHistory, $ionicPopover,
$scope.search.loading = true; $scope.search.loading = true;
$scope.load(); $scope.load();
$ionicHistory.nextViewOptions({ // Update location href
disableAnimate: true, $location.search({type: $scope.search.type}).replace();
disableBack: true,
historyRoot: true
});
$state.go('app.network', {type: $scope.search.type}, {
reload: false,
inherit: true,
notify: false});
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment