Add 'Open site directory' button

This commit is contained in:
Ivanq 2018-03-11 11:14:17 +03:00
parent 4c7013644f
commit a88f56bec3
3 changed files with 13 additions and 0 deletions

View file

@ -685,6 +685,11 @@ window.initScrollable = function () {
return false;
};
})(this));
this.tag.find("#button-directory").off("click touchend").on("click touchend", (function(_this) {
return function() {
return _this.wrapper.ws.cmd("serverShowdirectory", ["site", _this.wrapper.site_info.address]);
};
})(this));
$(document).on("click touchend", (function(_this) {
return function() {
_this.tag.find("#button-sign-publish-menu").removeClass("visible");