diff --git a/css/main.css b/css/main.css index 079ac524c..3c46c4a0c 100644 --- a/css/main.css +++ b/css/main.css @@ -897,6 +897,10 @@ button.gray:focus, margin-left: 0; } +.pointer { + cursor: pointer; +} + .video-box { width: 70px; text-align: center; diff --git a/js/controllers/addresses.js b/js/controllers/addresses.js index 72d985653..907bfc7ef 100644 --- a/js/controllers/addresses.js +++ b/js/controllers/addresses.js @@ -19,6 +19,14 @@ angular.module('copayApp.controllers').controller('AddressesController', $scope.openAddressModal = function(address) { var ModalInstanceCtrl = function ($scope, $modalInstance, address) { $scope.address = address; + + $scope.openExternal = function(address) { + var url = 'bitcoin:' + address; + if (window.cordova) return window.open(url, '_blank'); + + window.location = url; + } + $scope.cancel = function () { $modalInstance.dismiss('cancel'); }; diff --git a/views/addresses.html b/views/addresses.html index fe9a72184..b4ce4a31e 100644 --- a/views/addresses.html +++ b/views/addresses.html @@ -10,10 +10,9 @@