diff --git a/app/config.json b/app/config.json index 1cb92604900d55d33ba907ab046d783abb52d1e4..6730093208ff66dcbc9465ec622dcc71ec54e0e6 100644 --- a/app/config.json +++ b/app/config.json @@ -274,8 +274,8 @@ } }, "license": { - "fr-FR": "license/license_g1-fr-FR.txt", - "en": "license/license_g1-en.txt" + "fr-FR": "license/license_g1-fr-FR", + "en": "license/license_g1-en" }, "node": { "host": "g1.duniter.fr", diff --git a/www/js/config.js b/www/js/config.js index 04a5851c6e674d1bc4cac397892101ef96ce0543..79ae16cb44956e0e0a59050582825ecc2d56f3eb 100644 --- a/www/js/config.js +++ b/www/js/config.js @@ -29,8 +29,8 @@ angular.module("cesium.config", []) } }, "license": { - "fr-FR": "license/license_g1-fr-FR.txt", - "en": "license/license_g1-en.txt" + "fr-FR": "license/license_g1-fr-FR", + "en": "license/license_g1-en" }, "node": { "host": "g1.duniter.org", diff --git a/www/js/controllers/app-controllers.js b/www/js/controllers/app-controllers.js index 7f48abcb73478b77eeb8f9293469226fea6c5da0..b36b2823542e2eecc03e080c516a36d2b5d1c934 100644 --- a/www/js/controllers/app-controllers.js +++ b/www/js/controllers/app-controllers.js @@ -357,13 +357,7 @@ function AppController($scope, $rootScope, $state, $ionicSideMenuDelegate, $q, $ $scope.showJoinModal = function() { $scope.closeProfilePopover(); - return Modals.showJoin() - .then(function(res){ - if (!res) return; - return (res.accountType == 'member') ? - Modals.showJoinMember(res) : - Modals.showJoinWallet(res); - }); + return Modals.showJoin(); }; $scope.showSettings = function() { diff --git a/www/js/controllers/join-controllers.js b/www/js/controllers/join-controllers.js index f1a8426b391f919de562434852e06fb6609237f9..21a5401547807323c7111755cb9da786f9dd6025 100644 --- a/www/js/controllers/join-controllers.js +++ b/www/js/controllers/join-controllers.js @@ -144,7 +144,14 @@ function JoinModalController($scope, $state, $interval, $timeout, Device, UIUtil $scope.licenseFileUrl = $scope.licenseFileUrl + '.html'; } if (!$scope.isLicenseRead) { - $scope.startListenLicenseBottom(); + //$scope.startListenLicenseBottom(); + + // Make sure to enable the next button when error occured - Fix issue #592 + $timeout(function() { + if (!$scope.isLicenseRead) { + $scope.isLicenseRead = true; + } + }, 5000); } } } diff --git a/www/js/services/modal-services.js b/www/js/services/modal-services.js index 86d684c372ed44719b6fe9d2fa2b13002341942e..94876acb858418602a91dfb94c7718e5e66c6466 100644 --- a/www/js/services/modal-services.js +++ b/www/js/services/modal-services.js @@ -173,7 +173,13 @@ angular.module('cesium.modal.services', []) function showJoin(parameters) { return ModalUtils.show('templates/join/modal_choose_account_type.html','JoinChooseAccountTypeModalCtrl', - parameters); + parameters) + .then(function(res){ + if (!res) return; + return (res.accountType == 'member') ? + showJoinMember(res) : + showJoinWallet(res); + }); } function showJoinMember(parameters) {