From c80ec7196c9cac9731d033662b7907ec3ba947fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Wed, 7 Sep 2016 16:48:16 -0300 Subject: [PATCH] fix notes on send tab --- src/js/controllers/confirm.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/js/controllers/confirm.js b/src/js/controllers/confirm.js index 4c701775c..58ca12906 100644 --- a/src/js/controllers/confirm.js +++ b/src/js/controllers/confirm.js @@ -17,6 +17,11 @@ angular.module('copayApp.controllers').controller('confirmController', function( $scope.showDescriptionPopup = function() { + + $scope.data = { + comment: null + }; + var commentPopup = $ionicPopup.show({ templateUrl: "views/includes/note.html", title: gettextCatalog.getString('Set description'), @@ -25,9 +30,9 @@ angular.module('copayApp.controllers').controller('confirmController', function( $scope.commentPopupClose = function() { commentPopup.close(); }; - $scope.commentPopupSave = function(description) { - $log.debug('Saving description: ' + description); - $scope.description = description; + $scope.commentPopupSave = function() { + $log.debug('Saving description: ' + $scope.data.comment); + $scope.description = $scope.data.comment; commentPopup.close(); }; };