better function name

This commit is contained in:
Gustavo Maximiliano Cortez 2014-12-09 16:20:19 -03:00
parent 7dd54976a5
commit 6facb74886
4 changed files with 9 additions and 4 deletions

View File

@ -1,6 +1,6 @@
'use strict'; '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; var _credentials, _firstpin;
@ -172,4 +172,8 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
}); });
}; };
$scope.openExternalLink = function(url) {
go.openExternalLink(url);
};
}); });

View File

@ -145,7 +145,7 @@ angular.module('copayApp.controllers').controller('HistoryController',
return w.getNetworkName().substring(0, 4); return w.getNetworkName().substring(0, 4);
}; };
$scope.go = function(url) { $scope.openExternalLink = function(url) {
go.openExternalLink(url); go.openExternalLink(url);
}; };

View File

@ -120,7 +120,8 @@
</a> </a>
</div> </div>
<div class="right"> <div class="right">
<a class="button-setup text-gray" href="https://copay.io/profile-storage"> <a class="button-setup text-gray"
ng-click="openExternalLink('https://copay.io/profile-storage.html')">
Learn more about this option Learn more about this option
</a> </a>
</div> </div>

View File

@ -81,7 +81,7 @@
<div class="m10t oh"> <div class="m10t oh">
<a class="right button-setup" <a class="right button-setup"
ng-click="go('http://' + getShortNetworkName() + '.insight.is/tx/' + btx.txid)"> ng-click="openExternalLink('http://' + getShortNetworkName() + '.insight.is/tx/' + btx.txid)">
See it on the blockchain <i class="icon-arrow-right2 vm"></i> See it on the blockchain <i class="icon-arrow-right2 vm"></i>
</a> </a>
</p> </p>