close search view when going to preferences

This commit is contained in:
Gabriel Bazán 2016-02-23 12:00:46 -03:00
commit f0e08e94c6
2 changed files with 4 additions and 8 deletions

View file

@ -24,7 +24,8 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
ret.isMobile = isMobile.any();
ret.isWindowsPhoneApp = isMobile.Windows() && isCordova;
var vanillaScope = ret;
this.isSearching = false;
$rootScope.$emit('Local/Searching', false);
var disableScannerListener = $rootScope.$on('dataScanned', function(event, data) {
self.setForm(data);
@ -52,7 +53,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
self.addr = null;
self.resetForm();
$scope.search = '';
$rootScope.$emit('Local/Searching', false);
if (profileService.focusedClient) {
self.setAddress();