Fix text area without readonly to copy from iOS

This commit is contained in:
Gustavo Maximiliano Cortez 2014-10-16 15:56:52 -03:00
parent 74174f9775
commit 6c0ff1aafc
5 changed files with 4 additions and 35 deletions

View File

@ -128,13 +128,6 @@ input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill, inpu
-webkit-box-shadow: 0 0 0px 1000px white inset;
}
.backup-plain-text {
font-size: 10px;
border: 1px solid #ccc;
padding: 10px;
margin: 10px 0;
}
.status {
font-weight: 700;
-moz-box-shadow: inset 0px -1px 1px 0px rgba(159,47,34,0.30);

View File

@ -5,15 +5,6 @@ angular.module('copayApp.controllers').controller('CopayersController',
$scope.isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;
$scope.hideAdv = true;
$scope.sendEmail = function(backupPlainText) {
var w = $rootScope.wallet;
var link = 'mailto:'
+ '?subject=' + escape(backupService.getFilename(w))
+ '&body=' + escape(backupPlainText) + '';
window.location.href = link;
};
$scope.skipBackup = function() {
var w = $rootScope.wallet;
w.setBackupReady(true);

View File

@ -27,15 +27,6 @@ angular.module('copayApp.controllers').controller('MoreController',
decimals: 8
}];
$scope.sendEmail = function(backupPlainText) {
var w = $rootScope.wallet;
var link = 'mailto:'
+ '?subject=' + escape(backupService.getFilename(w))
+ '&body=' + escape(backupPlainText) + '';
window.location.href = link;
};
$scope.selectedAlternative = {
name: w.settings.alternativeName,
isoCode: w.settings.alternativeIsoCode

View File

@ -123,14 +123,11 @@
<div class="show-for-large-up">
<textarea readonly rows="5">{{backupPlainText}}</textarea>
<span translate class="size-12">Copy to clipboard</span> <span class="btn-copy" clip-copy="backupPlainText"> </span>
<div translate class="m10v size-12 text-gray text-right">Copy this text as it is in a safe place (notepad or email)</div>
</div>
<div class="hide-for-large-up m10b">
<div class="ellipsis backup-plain-text">{{backupPlainText}}</div>
<button class="button secondary m0"
ng-click="sendEmail(backupPlainText)" translate>Send by Email</button>
<div translate class="m10v size-12">Warning: Chrome for iOS remove some symbols from backup, please use only Safari on iOS</div>
<textarea rows="10">{{backupPlainText}}</textarea>
</div>
<div translate class="m10v size-12 text-gray text-right">Copy this text as it is in a safe place (notepad or email)</div>
</div>
<button class="button primary right m0"
ng-show="hideViewBackup"

View File

@ -13,14 +13,11 @@
<div class="show-for-large-up">
<textarea readonly rows="5">{{backupPlainText}}</textarea>
<span translate class="size-12">Copy to clipboard</span> <span class="btn-copy" clip-copy="backupPlainText"> </span>
<div translate class="m10t size-12 text-gray text-right">Copy this text as it is in a safe place (notepad or email)</div>
</div>
<div class="hide-for-large-up">
<div class="ellipsis backup-plain-text">{{backupPlainText}}</div>
<button class="button secondary m0"
ng-click="sendEmail(backupPlainText)" translate>Send by Email</button>
<div translate class="m10v size-12">Warning: Chrome for iOS removes some symbols from backup when opening Gmail client, please use only Safari on iOS (it open native Email application)</div>
<textarea rows="10">{{backupPlainText}}</textarea>
</div>
<div translate class="m10t size-12 text-gray text-right">Copy this text as it is in a safe place (notepad or email)</div>
</div>
</div>
<div class="large-12 columns line-dashed-h m15b"></div>