mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #378 from cmgustavo/bug/html5-alert
fixes html5 alert
This commit is contained in:
commit
c460b30872
|
@ -8,6 +8,7 @@ angular.module('copay.transactions').controller('TransactionsController',
|
||||||
|
|
||||||
$scope.send = function (ntxid) {
|
$scope.send = function (ntxid) {
|
||||||
$scope.loading = true;
|
$scope.loading = true;
|
||||||
|
$rootScope.txAlertCount = 0;
|
||||||
var w = $rootScope.wallet;
|
var w = $rootScope.wallet;
|
||||||
w.sendTx(ntxid, function(txid) {
|
w.sendTx(ntxid, function(txid) {
|
||||||
console.log('[transactions.js.68:txid:] SENTTX CALLBACK',txid); //TODO
|
console.log('[transactions.js.68:txid:] SENTTX CALLBACK',txid); //TODO
|
||||||
|
@ -65,6 +66,7 @@ angular.module('copay.transactions').controller('TransactionsController',
|
||||||
|
|
||||||
$scope.reject = function (ntxid) {
|
$scope.reject = function (ntxid) {
|
||||||
$scope.loading = true;
|
$scope.loading = true;
|
||||||
|
$rootScope.txAlertCount = 0;
|
||||||
var w = $rootScope.wallet;
|
var w = $rootScope.wallet;
|
||||||
w.reject(ntxid);
|
w.reject(ntxid);
|
||||||
$rootScope.flashMessage = {type:'warning', message: 'Transaction rejected by you'};
|
$rootScope.flashMessage = {type:'warning', message: 'Transaction rejected by you'};
|
||||||
|
|
Loading…
Reference in New Issue