Merge pull request #1325 from imachug/show-directory

Add "Open site directory" button
This commit is contained in:
ZeroNet 2018-03-19 15:56:02 +01:00 committed by GitHub
commit a454f3de6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 0 deletions

View file

@ -352,6 +352,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")