From c958b8e7a80923cd7c42a8994536cc7cc3666bd3 Mon Sep 17 00:00:00 2001 From: Gustavo Cortez Date: Thu, 15 May 2014 12:51:52 -0300 Subject: [PATCH] fixes html5 alert: if you have 1 tx pending and you reject or sign it, then does not appear the alert of the next one. --- js/controllers/transactions.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/controllers/transactions.js b/js/controllers/transactions.js index 26f948cbc..0a66e1dec 100644 --- a/js/controllers/transactions.js +++ b/js/controllers/transactions.js @@ -8,6 +8,7 @@ angular.module('copay.transactions').controller('TransactionsController', $scope.send = function (ntxid) { $scope.loading = true; + $rootScope.txAlertCount = 0; var w = $rootScope.wallet; w.sendTx(ntxid, function(txid) { 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.loading = true; + $rootScope.txAlertCount = 0; var w = $rootScope.wallet; w.reject(ntxid); $rootScope.flashMessage = {type:'warning', message: 'Transaction rejected by you'};