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

@ -348,6 +348,10 @@ class Sidebar extends Class
@updateHtmlTag()
return false
# Open site directory
@tag.find("#button-directory").off("click touchend").on "click touchend", =>
@wrapper.ws.cmd "serverShowdirectory", ["site", @wrapper.site_info.address]
# Sign and publish content.json
$(document).on "click touchend", =>
@tag.find("#button-sign-publish-menu").removeClass("visible")