Merge pull request #3630 from cmgustavo/bug/payment-uri01

Fix payment URI
This commit is contained in:
Matias Alejo Garcia 2015-12-10 10:42:56 -03:00
commit 2ed91ab561
2 changed files with 2 additions and 3 deletions

View file

@ -46,9 +46,8 @@ angular.module('copayApp.controllers').controller('paymentUriController',
if (wid != profileService.focusedClient.credentials.walletId) { if (wid != profileService.focusedClient.credentials.walletId) {
profileService.setAndStoreFocus(wid, function() {}); profileService.setAndStoreFocus(wid, function() {});
} }
go.send();
$timeout(function() { $timeout(function() {
$rootScope.$emit('paymentUri', self.bitcoinURI); $rootScope.$emit('paymentUri', self.bitcoinURI);
}, 100); }, 1000);
}; };
}); });

View file

@ -39,8 +39,8 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
}); });
var disablePaymentUriListener = $rootScope.$on('paymentUri', function(event, uri) { var disablePaymentUriListener = $rootScope.$on('paymentUri', function(event, uri) {
$rootScope.$emit('Local/SetTab', 'send');
$timeout(function() { $timeout(function() {
$rootScope.$emit('Local/SetTab', 'send');
self.setForm(uri); self.setForm(uri);
}, 100); }, 100);
}); });