Fix advanced button after change tab

This commit is contained in:
Gustavo Maximiliano Cortez 2017-01-06 19:03:09 -03:00
commit a37e125380
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
2 changed files with 7 additions and 4 deletions

View file

@ -358,7 +358,9 @@ angular.module('copayApp.controllers').controller('importController',
$scope.showAdvChange = function() {
$scope.showAdv = !$scope.showAdv;
$scope.resizeView();
$timeout(function() {
$scope.resizeView();
}, 100);
};
$scope.resizeView = function() {
@ -368,6 +370,7 @@ angular.module('copayApp.controllers').controller('importController',
};
$scope.$on("$ionicView.afterEnter", function(event, data) {
$scope.showAdv = false;
$scope.init();
});