diff --git a/js/controllers/createProfile.js b/js/controllers/createProfile.js index bd857cd46..13dcd9dd5 100644 --- a/js/controllers/createProfile.js +++ b/js/controllers/createProfile.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('copayApp.controllers').controller('CreateProfileController', function($scope, $rootScope, $location, $timeout, notification, pluginManager, identityService, pinService, isMobile, configService) { +angular.module('copayApp.controllers').controller('CreateProfileController', function($scope, $rootScope, $location, $timeout, notification, pluginManager, identityService, pinService, isMobile, configService, go) { var _credentials, _firstpin; @@ -172,4 +172,8 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun }); }; + $scope.openExternalLink = function(url) { + go.openExternalLink(url); + }; + }); diff --git a/js/controllers/history.js b/js/controllers/history.js index 3e79b337a..2e8382620 100644 --- a/js/controllers/history.js +++ b/js/controllers/history.js @@ -145,7 +145,7 @@ angular.module('copayApp.controllers').controller('HistoryController', return w.getNetworkName().substring(0, 4); }; - $scope.go = function(url) { + $scope.openExternalLink = function(url) { go.openExternalLink(url); }; diff --git a/views/createProfile.html b/views/createProfile.html index 1d79d6622..a3e322417 100644 --- a/views/createProfile.html +++ b/views/createProfile.html @@ -120,7 +120,8 @@
- + Learn more about this option
diff --git a/views/modals/tx-details.html b/views/modals/tx-details.html index f54559708..9ef101e81 100644 --- a/views/modals/tx-details.html +++ b/views/modals/tx-details.html @@ -81,7 +81,7 @@
+ ng-click="openExternalLink('http://' + getShortNetworkName() + '.insight.is/tx/' + btx.txid)"> See it on the blockchain