allow password copy on mobile Safari

This commit is contained in:
antelle 2016-09-18 11:33:17 +03:00
parent 1624c4a916
commit c2cca3e487
5 changed files with 7 additions and 6 deletions

View File

@ -30,9 +30,8 @@ var FeatureDetector = {
if (this.isWindows) { return 'Alt+PrintScreen'; }
return '';
},
shouldMoveHiddenInputToCopySource: function() {
return this.isiOS;
return this.isiOS && !/Version\/10/.test(navigator.userAgent);
},
canCopyReadonlyInput: function() {
return !(/CriOS/i.test(navigator.userAgent));

View File

@ -11,6 +11,7 @@ var Tip = function(el, config) {
this.tipEl = null;
this.showTimeout = null;
this.hideTimeout = null;
this.force = config && config.force || false;
this.hide = this.hide.bind(this);
};
@ -27,7 +28,7 @@ Tip.prototype.init = function() {
};
Tip.prototype.show = function() {
if (!Tip.enabled) {
if (!Tip.enabled && !this.force) {
return;
}
Backbone.on('page-geometry', this.hide);

View File

@ -548,7 +548,7 @@ var DetailsView = Backbone.View.extend({
: Locale.detFieldCopied;
var tip;
if (!this.isHidden()) {
tip = new Tip(fieldLabel, {title: msg, placement: 'right', fast: true});
tip = new Tip(fieldLabel, {title: msg, placement: 'right', fast: true, force: true});
this.fieldCopyTip = tip;
tip.show();
}

View File

@ -5,7 +5,7 @@
white-space: nowrap;
z-index: $z-index-no-modal;
pointer-events: none;
animation: tip $tip-transition-in;
@include nomobile { animation: tip $tip-transition-in; }
@include common-dropdown;
&.tip--fast, &.tip--fast:before, &.tip--fast:after {
animation-duration: $base-duration;
@ -19,7 +19,7 @@
box-shadow: none;
}
&:before, &:after {
animation: tip $tip-transition-in;
@include nomobile { animation: tip $tip-transition-in; }
content: " ";
width: 0;
height: 0;

View File

@ -4,6 +4,7 @@ Release notes
`+` translations: fr, pl, pt
`-` fix #368: desktop file save error
`-` fix #369: removed additional webdav request
`+` allow password copy on mobile Safari
##### v1.3.2 (2016-09-13)
`-` fix #342: url detection in Microsoft Edge