From c71e3bc0e49571b12e7fc66f03b36fa1fd59f6fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Fri, 25 Nov 2016 10:14:01 -0300 Subject: [PATCH] adding reverse animation to finish button --- src/js/controllers/customAmount.js | 10 +++++++++- www/views/customAmount.html | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/js/controllers/customAmount.js b/src/js/controllers/customAmount.js index a5dad8701..ea3e56ceb 100644 --- a/src/js/controllers/customAmount.js +++ b/src/js/controllers/customAmount.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('copayApp.controllers').controller('customAmountController', function($rootScope, $scope, $stateParams, txFormatService, platformInfo) { +angular.module('copayApp.controllers').controller('customAmountController', function($rootScope, $scope, $stateParams, $ionicHistory, txFormatService, platformInfo) { $scope.$on("$ionicView.beforeEnter", function(event, data) { var satToBtc = 1 / 100000000; @@ -16,4 +16,12 @@ angular.module('copayApp.controllers').controller('customAmountController', func window.plugins.socialsharing.share(uri, null, null, null); }; + $scope.finish = function() { + $ionicHistory.nextViewOptions({ + disableAnimate: false, + historyRoot: true + }); + $ionicHistory.goBack(-2); + }; + }); diff --git a/www/views/customAmount.html b/www/views/customAmount.html index 4a5d48496..0e250ad47 100644 --- a/www/views/customAmount.html +++ b/www/views/customAmount.html @@ -6,7 +6,7 @@ -