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));
return this.tag.find("#privatekey-forgot").off("click, touchend").on("click touchend", (function(_this) {
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) {
return false;
}
@ -729,8 +729,10 @@ window.initScrollable = function () {
if (!_this.opened) {
_this.container.remove();
_this.container = null;
_this.tag.remove();
return _this.tag = null;
if (_this.tag) {
_this.tag.remove();
return _this.tag = null;
}
}
};
})(this));