diff --git a/www/plugins/es/js/controllers/invitation-controllers.js b/www/plugins/es/js/controllers/invitation-controllers.js index 96ce0780fa5a6fcf23943e08ae6471bed1063e25..d892791ea0ab3fc8331c36c6db5d840970846710 100644 --- a/www/plugins/es/js/controllers/invitation-controllers.js +++ b/www/plugins/es/js/controllers/invitation-controllers.js @@ -230,7 +230,9 @@ function InvitationsController($scope, $q, $ionicPopover, $state, $timeout, UIUt $scope.showNewInvitationModal = function() { $scope.hideActionsPopover(); - return esModals.showNewInvitation({}); + return $timeout(function() { + return esModals.showNewInvitation({}) + }, 500); // Timeout need, to avoid freeze }; /* -- Popover -- */ @@ -368,7 +370,7 @@ function NewInvitationModalController($scope, $q, Modals, UIUtils, csWallet, esH } }) .catch(function(err){ - if (err == 'CANCELLED') return $scope.cancel(); // close the modal + if (err === 'CANCELLED') return $scope.cancel(); // close the modal UIUtils.onError('ERROR.LOGIN_FAILED')(err); }); }; diff --git a/www/plugins/es/templates/invitation/new_invitation_form.html b/www/plugins/es/templates/invitation/new_invitation_form.html index 8f038ecf78e94be1e237d5e25fa5484654d162cf..4b3ac67b0607c684b60786b9258c5c9aca19d0ff 100644 --- a/www/plugins/es/templates/invitation/new_invitation_form.html +++ b/www/plugins/es/templates/invitation/new_invitation_form.html @@ -94,11 +94,14 @@ </div> <div class="padding hidden-xs text-right"> - <button class="button button-small button-clear button-dark ink" + <button class="button button-clear button-dark ink" + tabindex="-1" ng-click="cancel()" type="button" translate>COMMON.BTN_CANCEL </button> - <button class="button button-small button-positive ink" type="submit"> - {{'COMMON.BTN_SEND' | translate}} + <button class="button button-positive ink" + tabindex="8" + type="submit" translate> + TRANSFER.BTN_SEND </button> </div> </form>