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

@ -846,9 +846,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.setCompactTxHistory();
}
if (historyUpdateInProgress[walletId])
if (historyUpdateInProgress[walletId])
return;
historyUpdateInProgress[walletId] = true;
function getNewTxs(newTxs, skip, i_cb) {
@ -1237,10 +1237,6 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.setAddressbook(ab);
});
$rootScope.$on('Local/Searching', function(event, val) {
self.isSearching = val;
});
// UX event handlers
$rootScope.$on('Local/ColorUpdated', function(event) {
self.updateColor();