diff --git a/cordova/build.sh b/cordova/build.sh index ffe2fff2b..a638ea1e4 100755 --- a/cordova/build.sh +++ b/cordova/build.sh @@ -83,6 +83,9 @@ if [ ! -d $PROJECT ]; then cordova plugin add https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin.git --variable URL_SCHEME=bitcoin checkOK + cordova plugin add org.apache.cordova.inappbrowser + checkOK + fi echo "${OpenColor}${Green}* Generating copay bundle...${CloseColor}" diff --git a/js/controllers/history.js b/js/controllers/history.js index 77c632d97..3e79b337a 100644 --- a/js/controllers/history.js +++ b/js/controllers/history.js @@ -2,7 +2,7 @@ var bitcore = require('bitcore'); angular.module('copayApp.controllers').controller('HistoryController', - function($scope, $rootScope, $filter, $timeout, $modal, rateService, notification) { + function($scope, $rootScope, $filter, $timeout, $modal, rateService, notification, go) { var w = $rootScope.wallet; $rootScope.title = 'History'; @@ -145,6 +145,9 @@ angular.module('copayApp.controllers').controller('HistoryController', return w.getNetworkName().substring(0, 4); }; + $scope.go = function(url) { + go.openExternalLink(url); + }; $scope.cancel = function() { $modalInstance.dismiss('cancel'); diff --git a/js/services/go.js b/js/services/go.js index ac9d9d85b..550693288 100644 --- a/js/services/go.js +++ b/js/services/go.js @@ -40,6 +40,10 @@ angular.module('copayApp.services').factory('go', function($window, $location) { } }; + root.openExternalLink = function(url) { + var ref = window.open(url, '_blank', 'location=no'); + }; + root.go = function(path) { var parts = path.split('#'); $location.path(parts[0]); diff --git a/views/modals/tx-details.html b/views/modals/tx-details.html index 529fec962..f54559708 100644 --- a/views/modals/tx-details.html +++ b/views/modals/tx-details.html @@ -79,8 +79,11 @@ -
- See it on the blockchain +
+ + See it on the blockchain +