paypro: misc work.
This commit is contained in:
parent
6e9eaf7d9d
commit
7b678a91b5
3 changed files with 17 additions and 65 deletions
|
|
@ -53,9 +53,10 @@ angular.module('copayApp.directives')
|
|||
+ expires.toISOString()
|
||||
+ '): ' + memo);
|
||||
|
||||
ctrl.$setValidity('validAddress', true);
|
||||
// ctrl.$setValidity('validAddress', true);
|
||||
});
|
||||
|
||||
ctrl.$setValidity('validAddress', true);
|
||||
return 'Merchant: '+ uri.merchant;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,10 +32,10 @@ if (typeof window !== 'undefined') {
|
|||
}
|
||||
|
||||
if (typeof angular !== 'undefined') {
|
||||
var $http = G.$http || angular.bootstrap().get('$http');
|
||||
G.$http = G.$http || angular.bootstrap().get('$http');
|
||||
}
|
||||
|
||||
var $http = G.$http || function $http(options, callback) {
|
||||
G.$http = function $http(options, callback) {
|
||||
if (typeof options === 'string') {
|
||||
options = { uri: options };
|
||||
}
|
||||
|
|
@ -84,11 +84,11 @@ var $http = G.$http || function $http(options, callback) {
|
|||
// Newer browsers:
|
||||
xhr.responseType = 'arraybuffer';
|
||||
|
||||
xhr.onreadystatechange = function() {
|
||||
if (xhr.readyState == 4) {
|
||||
;
|
||||
}
|
||||
};
|
||||
// xhr.onreadystatechange = function() {
|
||||
// if (xhr.readyState == 4) {
|
||||
// ;
|
||||
// }
|
||||
// };
|
||||
|
||||
xhr.onload = function(event) {
|
||||
var response = xhr.response;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue