reorganized method definitions

This commit is contained in:
Ivan Socolsky 2014-10-30 11:34:40 -03:00
commit dcab904f50

View file

@ -54,19 +54,6 @@ angular.module('copayApp.controllers').controller('MoreController',
}
}
$scope.save = function() {
w.changeSettings({
unitName: $scope.selectedUnit.shortName,
unitToSatoshi: $scope.selectedUnit.value,
unitDecimals: $scope.selectedUnit.decimals,
alternativeName: $scope.selectedAlternative.name,
alternativeIsoCode: $scope.selectedAlternative.isoCode,
});
notification.success('Success', $filter('translate')('settings successfully updated'));
controllerUtils.updateBalance();
};
$scope.hideAdv = true;
$scope.hidePriv = true;
$scope.hideSecret = true;
@ -79,6 +66,18 @@ angular.module('copayApp.controllers').controller('MoreController',
$scope.$digest();
}, 1);
$scope.save = function() {
w.changeSettings({
unitName: $scope.selectedUnit.shortName,
unitToSatoshi: $scope.selectedUnit.value,
unitDecimals: $scope.selectedUnit.decimals,
alternativeName: $scope.selectedAlternative.name,
alternativeIsoCode: $scope.selectedAlternative.isoCode,
});
notification.success('Success', $filter('translate')('settings successfully updated'));
controllerUtils.updateBalance();
};
$scope.downloadBackup = function() {
backupService.walletDownload(w);
}