Merge sidebar js

This commit is contained in:
shortcutme 2018-10-05 15:08:42 +02:00
parent 91478aa128
commit 7afe1807b7
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -608,7 +608,7 @@ window.initScrollable = function () {
})(this)); })(this));
return this.tag.find("#privatekey-forgot").off("click, touchend").on("click touchend", (function(_this) { return this.tag.find("#privatekey-forgot").off("click, touchend").on("click touchend", (function(_this) {
return function(e) { return function(e) {
_this.wrapper.displayConfirm("Remove saved prive key for this site?", "Forgot", function(res) { _this.wrapper.displayConfirm("Remove saved private key for this site?", "Forgot", function(res) {
if (!res) { if (!res) {
return false; return false;
} }
@ -729,9 +729,11 @@ window.initScrollable = function () {
if (!_this.opened) { if (!_this.opened) {
_this.container.remove(); _this.container.remove();
_this.container = null; _this.container = null;
if (_this.tag) {
_this.tag.remove(); _this.tag.remove();
return _this.tag = null; return _this.tag = null;
} }
}
}; };
})(this)); })(this));
} }