Enables copy-to-clipboard more strings

This commit is contained in:
Gustavo Maximiliano Cortez 2016-02-16 14:13:50 -05:00
commit 7b57011fd2
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
6 changed files with 21 additions and 26 deletions

View file

@ -427,9 +427,9 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
}, 100);
};
$scope.copyAddress = function(addr) {
$scope.copyToClipboard = function(addr) {
if (!addr) return;
self.copyAddress(addr);
self.copyToClipboard(addr);
};
$scope.cancel = lodash.debounce(function() {
@ -497,7 +497,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
});
};
this.copyAddress = function(addr) {
this.copyToClipboard = function(addr) {
if (isCordova) {
window.cordova.plugins.clipboard.copy(addr);
window.plugins.toast.showShortCenter(gettextCatalog.getString('Copied to clipboard'));
@ -1193,9 +1193,9 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
return n.substring(0, 4);
};
$scope.copyAddress = function(addr) {
$scope.copyToClipboard = function(addr) {
if (!addr) return;
self.copyAddress(addr);
self.copyToClipboard(addr);
};
$scope.cancel = lodash.debounce(function() {