mirror of https://github.com/keeweb/keeweb.git
don't show tips if view is hidden
This commit is contained in:
parent
e432fd9748
commit
978e2de942
|
@ -385,12 +385,17 @@ var DetailsView = Backbone.View.extend({
|
|||
var clipboardTime = e.copyRes.seconds;
|
||||
var msg = clipboardTime ? Locale.detFieldCopiedTime.replace('{}', clipboardTime)
|
||||
: Locale.detFieldCopied;
|
||||
var tip = new Tip(fieldLabel, { title: msg, placement: 'right', fast: true });
|
||||
this.fieldCopyTip = tip;
|
||||
tip.show();
|
||||
var tip;
|
||||
if (!this.isHidden()) {
|
||||
tip = new Tip(fieldLabel, {title: msg, placement: 'right', fast: true});
|
||||
this.fieldCopyTip = tip;
|
||||
tip.show();
|
||||
}
|
||||
var that = this;
|
||||
setTimeout(function() {
|
||||
tip.hide();
|
||||
if (tip) {
|
||||
tip.hide();
|
||||
}
|
||||
that.fieldCopyTip = null;
|
||||
if (e.source.model.name === '$Password' && AppSettingsModel.instance.get('lockOnCopy')) {
|
||||
setTimeout(function() {
|
||||
|
|
Loading…
Reference in New Issue